Xamarin.Android getting CircularProgressIndicator full size on Wearos
I am using com.google.android.material.progressindicator.CircularProgressIndicator but this control doesnt align fully within the parent setting android:layout_width="match_parent"
android:layout_height="match_parent" width height also not working. Only way seems to be indicatorSize: i am trying to get that on WearOs looking like screen on the image below. how to get that dynamically based on the screen width? because there are different wearos sizes.
If you want a full-screen CircularProgressbar, you could use ProgressBar directly. In wearOS, the ProgressBar will automatically be circular in my testing.
<ProgressBar android:id="@+id/determinateBar" android:layout_width="match_parent" android:layout_height="match_parent"/>
After doing that, you will find the progress bar shows an infinite animation. It is caused by the property
You can refer to setIndeterminate and find the solution:
Change the indeterminate mode for this progress bar. In indeterminate mode, the progress is ignored and the progress bar shows an infinite animation instead.
If this progress bar's style only supports indeterminate mode (such as the circular progress bars), then this will be ignored.
Sign in to comment