我无法在MIT App inventor中播放具有透明背景的GIF。我使用图像组件来显示GIF,但它不起作用。查看主机中上传的GIF后,发现GIF背景自动设置为白色。
只需在您的应用中使用Glide库,请检查以下代码
ImageView imageView = (ImageView) findViewById(R.id.imageView);
GlideDrawableImageViewTarget imageViewTarget = new GlideDrawableImageViewTarget(imageView);
Glide.with(this).load(R.raw.sample_gif).into(imageViewTarget);
在App Inventor中使用webviewer组件,在此处查看示例App Inventor and animated gifs
提示:下一次进行类似https://www.google.com/search?q=App+Inventor+animated+gif的Google搜索...您自己可以轻松找到问题的答案...