Android – ProgressBar Style

By -

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:

  1. style=”?android:attr/progressBarStyleLarge”
  2. style=”?android:attr/progressBarStyleSmall”
  3. style=”?android:attr/progressBarStyleHorizontal”
Paresh Mayani

Lazy android developer, exploring the horizon of android development since 7 years, currently working as a Technical Lead - Android at Simform Solutions, India. Former Application Architect at KarConnect. He is the Head/Organizer of Google Developers Group (GDG), Ahmedabad

Loading Facebook Comments ...
Loading Disqus Comments ...