Hi guys I have a Style declared as follows *XML:* <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable= "@drawable/progbar2_320x480"> </item> <item android:id="@android:id/secondaryProgress"> <clip> <shape> <solid android:color="#4A7116" /> </shape> </clip> </item> <item android:id="@android:id/progress"> <clip> <shape> <solid android:color="#95BB1C" /> </shape> </clip> </item> </layer-list>
I want to change the color of progressbar and secondary progressbar at runtime. How can i do that.. There is a function in LayerDrawable as * * findDrawableByLayerId(android.R.id.progress); or * * findDrawableByLayerId(android.R.id.secondaryProgress); but i am not getting how to use that.. Thanks , Alok -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.