当前位置:操作系统 > 安卓/Android >>

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

本例介绍了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>

 

 

\
补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,