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”

CEO & Co-Founder at SolGuruz® | Organiser @ GDG Ahmedabad | Top 0.1% over StackOverflow | 15+ years experienced Tech Consultant | Helping startups with Custom Software Development

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