亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Android實(shí)現(xiàn)文件上傳和下載倒計時功能的圓形進(jìn)度條

 更新時間:2017年09月07日 11:42:11   作者:愛投籃的安德森  
這篇文章主要介紹了Android實(shí)現(xiàn)文件上傳和下載倒計時功能的圓形進(jìn)度條,需要的朋友可以參考下

screenshot

截圖展示

截圖展示

import

 step1. Add it in your root build.gradle at the end of repositories:
   allprojects {
    repositories {
     ...
     maven { url 'https://jitpack.io' }
    }
   }
 step2. Add the dependency
   dependencies {
   compile 'com.github.yanjiabin:ExtendsRingPrigressBar:1.1.1'
   }

how to use

in your xml
  <com.github.yanjiabin.extendsringprogressbarlib.RingProgressBar
   android:layout_gravity="center"
   android:id="@+id/progress_bar_1"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:layout_centerInParent="true"
   android:layout_alignParentTop="true"
   app:max="100"      最大進(jìn)度
   app:ringColor="@color/colorPrimary" 圓環(huán)的顏色
   app:ringProgressColor="@color/colorPrimaryDark" 進(jìn)度條的顏色
   app:ringWidth="3dp" 圓環(huán)的寬度
   app:style="FILL" 填充狀態(tài)和描邊狀態(tài) 還有一種是STROKE
   app:textColor="@color/colorPrimary" 顯示文本的顏色
   app:textIsShow="true" 是否顯示文本
   app:textSize="16sp" />

github地址:

https://github.com/yanjiabin/ExtendsRingPrigressBar

總結(jié)

以上所述是小編給大家介紹的Android實(shí)現(xiàn)文件上傳和下載倒計時功能的圓形進(jìn)度條,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論