<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:variablePadding="true" > <item android:duration="40"> <clip xmlns:android="http://schemas.android.com/apk/res/android" android:clipOrientation="horizontal" android:drawable="@drawable/loading_70px_001" android:gravity="left" > </clip> </item> <item android:duration="40"> <clip xmlns:android="http://schemas.android.com/apk/res/android" android:clipOrientation="horizontal" android:drawable="@drawable/loading_70px_100" android:gravity="left" > </clip> </item> </animation-list>
android自定义progressbar图片大小自适应
通过animation-list 动画自定义的progressbar样式,如果progressbar设置的长度和宽度超过了动画中图片的大小,效果会很难看,通过如下方式可解决。
猜你喜欢
转载自jxw024.iteye.com/blog/1912651
今日推荐
周排行