ProgressBar.getProgressDrawable()
возвращает LayerDrawable
, в котором:
LayerDrawable progressDrawable = (LayerDrawable) getProgressDrawable();
Drawable backgroundColor = progressDrawable.getDrawable(0);
Drawable secondaryColor = progressDrawable.getDrawable(1);
Drawable primaryColor = progressDrawable.getDrawable(2);
Я пытаюсь изменить цвета (пример):
progressDrawable.setDrawableByLayerId(progressDrawable.getId(2), new ClipDrawable(...));
но иногда экран зависает, иногда вылетает.
Наконец я отказался от поисков нехватки времени.
Извините: (
Michele