android ProgressBar例2


ProgressBarの例についてはこちらを参照してください
http://byandby.iteye.com/blog/816494
これも小さな例で簡単です  次は、xmlファイルのプロパティに関する公式ドキュメントの簡単な説明です.
Attribute                                   Description
android:indeterminate           Allows to enable the indeterminate mode.
android:indeterminateBehavior   Defines how the indeterminate mode should behave when the progress reaches max.
android:indeterminateDrawable   Drawable used for the indeterminate mode.
android:indeterminateDuration   Duration of the indeterminate animation.
android:indeterminateOnly           Restricts to ONLY indeterminate mode (state-keeping progress mode will not work).
android:interpolator
android:max                           Defines the maximum value the progress can take.
android:maxHeight                   An optional argument to supply a maximum height for this view.
android:maxWidth                   An optional argument to supply a maximum width for this view.
android:minHeight
android:minWidth
android:progress                  Defines the default progress value, between 0 and max.
android:progressDrawable          Drawable used for the progress mode.
android:secondaryProgress Defines the secondary progress value, between 0 and max.
  まず運行効果を見てみましょう.
android ProgressBar 示例二
サンプルレイアウトファイル

    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
   />
android:id="@+id/firstBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:visibility="gone"
/>
android:id="@+id/secondBar"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
/>