您的位置:首页 > 移动开发 > Android开发

Android ApiDemos示例解析(183):Views->Progress Bar->2. Smooth

2012-10-04 09:35 435 查看
本例介绍了ProgressBar 采用”indeterminate” 模式上几种不同的风格,在progressbar_2.xml 中添加一个使用水平滚动条的”indeterminate” 模式。

<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”

android:orientation=”vertical”

android:layout_width=”match_parent”

android:layout_height=”wrap_content”>

<ProgressBar android:id=”@+android:id/progress_large”

style=”?android:attr/progressBarStyleLarge”

android:layout_width=”wrap_content”

android:layout_height=”wrap_content” />

<ProgressBar android:id=”@+android:id/progress”

android:layout_width=”wrap_content”

android:layout_height=”wrap_content” />

<ProgressBar android:id=”@+android:id/progress_small”

style=”?android:attr/progressBarStyleSmall”

android:layout_width=”wrap_content”

android:layout_height=”wrap_content” />

<ProgressBar android:id=”@+android:id/progress_small_title”

style=”?android:attr/progressBarStyleSmallTitle”

android:layout_width=”wrap_content”

android:layout_height=”wrap_content” />

<ProgressBar

android:indeterminate =”true”

style=”?android:attr/progressBarStyleHorizontal”

android:layout_width=”wrap_content”

android:layout_height=”wrap_content” />

</LinearLayout>



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: