I have this progressbar view:
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="6dp"
android:layout_centerVertical="true"
android:max="100"
android:progress="20"
android:progressDrawable="@drawable/progress_bar_shape"
android:progressTint="#03ff46" // this is the value I'm trying to set via RemoteView
android:progressBackgroundTint="#a8a8a8" // also this one
/>
I'm trying to set the background color & fill color with RemoteView (I'm using it for a widget)
views.setInt(R.id.progressBar, "setProgressTintList", clockData.getDarkColor());
My widget can't load, so this must be the wrong way to do this.
How can I fix this problem?
Thank you!