У меня есть ProgressBar XML:Xamarin: Progress Bar Изменение цвета
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar"
style="@android:style/Widget.ProgressBar.Large" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="25sp"
android:text="Loading..." />
</LinearLayout>
И мне нужно изменить цвет по умолчанию (серый). Мне нужно изменить цвет программно или xml-формы.
В моей деятельности у меня есть:
SetContentView(Resource.Layout.LoadingBar);
var progressBar = FindViewById<ProgressBar>(Resource.Id.progressBar);