As I have mentioned in my earlier post Android – Types of EditText Android has tried a lot in ADT 11.0 to provide more flexibility to developer to design UI easily. I remember and i found many Android programmers were facing the problem and asking a question on StackOverflow regarding the ProgressBar style.
Android – Large ProgressBar:
<ProgressBar android:layout_width="wrap_content" style="?android:attr/progressBarStyleLarge" android:layout_height="wrap_content" android:id="@+id/progressBar1"></ProgressBar>
Android – Normal ProgressBar:
<ProgressBar android:id="@+id/progressBar2" android:layout_width="wrap_content" android:layout_height="wrap_content"></ProgressBar>
Android – Small ProgressBar:
<ProgressBar android:layout_width="wrap_content" style="?android:attr/progressBarStyleSmall" android:layout_height="wrap_content" android:id="@+id/progressBar3"></ProgressBar>
Android – Horizontal ProgressBar:
<ProgressBar android:layout_width="wrap_content" style="?android:attr/progressBarStyleHorizontal" android:layout_height="wrap_content" android:id="@+id/progressBar4"></ProgressBar>
If you mark it, Android has radily given you the different ProgressBar widget by defining style attributes of it:
- style=”?android:attr/progressBarStyleLarge”
- style=”?android:attr/progressBarStyleSmall”
- style=”?android:attr/progressBarStyleHorizontal”