CustomProgressDialog
2015-07-08 10:51
197 查看
1 ,布局文件
anim/progress_round.xml
progressdialog 样式
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal"> <ImageView android:id="@+id/loadingImageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@anim/progress_round"/> <TextView android:id="@+id/id_tv_loadingmsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:textSize="20dp"/> </LinearLayout>
anim/progress_round.xml
<?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <item android:drawable="@drawable/progress_1" android:duration="200"/> <item android:drawable="@drawable/progress_2" android:duration="200"/> <item android:drawable="@drawable/progress_3" android:duration="200"/> <item android:drawable="@drawable/progress_4" android:duration="200"/> <item android:drawable="@drawable/progress_5" android:duration="200"/> <item android:drawable="@drawable/progress_6" android:duration="200"/> <item android:drawable="@drawable/progress_7" android:duration="200"/> <item android:drawable="@drawable/progress_8" android:duration="60"/> </animation-list>
progressdialog 样式
<style name="CustomDialog" parent="@android:style/Theme.Dialog"> <item name="android:windowFrame">@null</item> <item name="android:windowIsFloating">true</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item> </style> <style name="CustomProgressDialog" parent="@style/CustomDialog"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowNoTitle">true</item> </style>
相关文章推荐
- 代理模式
- 悟空学Linux专栏----第7篇
- mmap使用
- 解决SuperMap Objects Java 在Tomcat中运行时提示找不到Wrapj的问题
- oracle时间格式转换,如yyyy-mm-dd改成yyyy-mm-dd 23:59:59
- Linux 下 ngnix 搭建 http 服务器
- 东软实习第一天上课
- 方便的布局动画
- plsql dev中Dynamic Performance Tables not accessible分析解决
- framework7学习笔记
- JAAS授权
- Contains Duplicate
- [欧拉] poj 2513 Colored Sticks
- C#程序设计开发总结(猜猜看游戏开发)
- 悟空学Linux专栏----第6篇
- C++中的内存分区介绍
- Xcode unable to dequeue a cell with identifier
- Contains Duplicate II
- 云计算平台最核心的五项技术
- wamp环境 安装memcached具体操作