Hi All,

In ApiDemo, there is a progressBar demo. It creates a horizontal
progress bar with a xml.

    <ProgressBar android:id="@+id/progress_horizontal"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="200dip"
        android:layout_height="wrap_content"
        android:max="100"
        android:progress="50"
        android:secondaryProgress="75" />

But how to create one programmatically?
If just new ProgressBar(fContext), it is Default ProgressBar style.

Please help me. Thanks a lot in advance.
(*^__^*)

On Jul 21, 4:22 pm, 单单 <birb...@gmail.com> wrote:
> Hi All,
>
> In ApiDemo, there is a progressBar demo. It creates a horizontal
> progress bar with a xml.
>
>     <ProgressBar android:id="@+id/progress_horizontal"
>         style="?android:attr/progressBarStyleHorizontal"
>         android:layout_width="200dip"
>         android:layout_height="wrap_content"
>         android:max="100"
>         android:progress="50"
>         android:secondaryProgress="75" />
>
> But how to create one programmatically?
> If just new ProgressBar(fContext), it is Default ProgressBar style.
>
> Please help me. Thanks a lot in advance.
> (*^__^*)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to