首页 > 其他 > 详细

高级UI组件

时间:2020-02-14 20:10:45      阅读:53      评论:0      收藏:0      [点我收藏+]

 

1.进度条

   (1).圆形进度条(一般默认为圆形进度条)

    

 <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

技术分享图片

 

        (2)条状进度条

<ProgressBar
        android:id="@+id/progressBar"
        style="?android:attr/progressBarStyleHorizontal"
        android:max="100"
        android:progress="50"       设置进度为50%
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="2dp"
         />

技术分享图片

 

 一些常用进度条属性:

技术分享图片

 

  通常情况下进度条的使用过程

技术分享图片

 

 2.拖动条组件

<SeekBar
        android:id="@+id/seekBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:max="10"
        android:progress="5"
         />

技术分享图片

 

 3.星星级评价

 默认为五颗星

<RatingBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

自定义数量

<RatingBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:numStars="7"
        android:rating="5"/>

技术分享图片

 

高级UI组件

原文:https://www.cnblogs.com/zwx655/p/12308595.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!