Switching Color of a Progressbar programmatically
问题 so i have a Layer-List with an Item with a shape and a solid color. Now i want to change this color inside my code. <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <clip> <shape android:id="@+id/seekbar_shape_color"> <solid android:color="#FFD00000" /> </shape> </clip> </item> </layer-list> i tryed getting the LayerDrawable and requesting the first item, now iam stuck getting the clipDrawable and finally get the ShapeDrawable LayerDrawable sd = (LayerDrawable) v