I want to design and implement a progress bar. But i have some problems.
My progress bar layout like this
<ProgressBar
android:id="@+id/progress1"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:max="100"
android:maxHeight="5sp"
android:progress="45" />
MyActivity.java
ProgressBar pb1 = (ProgressBar) findViewById(R.id.progress1);
My problem is about android:max
. Is there a way to change it with user's choice. For example user maybe wants to set 1500 for max value. I want to do it with plain text. (User must enter his/her value to plain text).
How can i implement it on java side?