
<@R_156_3419@ xmlns:androID="http://schemas.androID.com/apk/res/androID"> <!-- define the background propertIEs like color etc --> <item androID:ID="@androID:ID/background"> <shape> <gradIEnt androID:startcolor="#000001" androID:centercolor="#0b131e" androID:centerY="1.0" androID:endcolor="#0d1522" androID:angle="270" /> </shape> </item> <!-- define the progress propertIEs like start color,end color etc --> <item androID:ID="@androID:ID/progress"> <clip> <shape> <gradIEnt androID:startcolor="#007A00" androID:centercolor="#007A00" androID:centerY="1.0" androID:endcolor="#06101d" androID:angle="270" /> </shape> </clip> </item></@R_156_3419@>
和
<Progressbar androID:ID="@+ID/progressbar1" androID:progressDrawable="@drawable/custom_progressbar" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" />
现在我有颜色,但我需要在填充和保持之间放置指示图像.
任何的想法?
解决方法 您所看到的是Seekbar而不是简单的Progressbar.圆形指示器称为拇指,您可以添加任何您喜欢的图像(以及自定义进度条).<Seekbar ... androID:thumb="@drawable/your_thumb" androID:progressDrawable="@drawable/progress_bar_layers" />总结
以上是内存溢出为你收集整理的android – 如何使用指标图像制作自定义进度条,如whatsapp?全部内容,希望文章能够帮你解决android – 如何使用指标图像制作自定义进度条,如whatsapp?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)