android 加载 .gif 并一直刷新
来源:互联网 发布:plmn有什么网络 编辑:程序博客网 时间:2024/05/03 07:28
1.
dependencies {
compile ‘pl.droidsonroids.gif:android-gif-drawable:1.2.+’
}
2.
< pl.droidsonroids.gif.GifImageView
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:background=”@drawable/gif_file”
/>
3.如果不gif文件播放了一次就不播放了
private void gifLoop(){ GifImageView gifImageView = (GifImageView) findViewById(R.id.gif_bg); GifDrawable gifDrawable = null; try { gifDrawable = new GifDrawable(getResources(), R.drawable.login_bg); gifDrawable.setLoopCount(0); } catch (IOException e) { e.printStackTrace(); } gifImageView.setImageDrawable(gifDrawable); }
阅读全文
0 0
- android 加载 .gif 并一直刷新
- 加载gif,并序列化
- Android 加载gif动画
- android加载GIF动画
- android 加载gif
- Android gif 加载方式
- android加载gif图片
- Android 加载gif图片
- Android加载gif图
- Android加载GIF动画
- Android加载gif图片
- android加载gif图片
- android-加载网络Gif和本地Gif
- Android上拉刷新下拉加载XRefreshView集成以及自定义GIF动画
- Android实现保存图片并刷新系统图库图片一直在最前面
- Android 加载.gif格式图片
- Android中加载Gif动画图片
- Android中加载Gif图片
- 详解MySQL中EXPLAIN解释命令
- 字符串删除指定字符
- java 集合类(collection(list set) map)学习总结
- margn和padding具体意思
- HHKB入手
- android 加载 .gif 并一直刷新
- LA-GM-08K08A
- 加载长图问题与解决方案
- mvc模型2
- BAT 实现批量复制+安装程序
- TCP/IP详解卷1:协议(四)【ARP:地址解析协议,RARP:逆地址解析协议】
- 如何在R语言中读取数据
- 再次做consruct2游戏
- 计算机色彩编码