0

如何在進度點創建水平進度條指示文字。我想創建一個像這樣的進度條。水平進度條帶進度條上的文字

enter image description here

+1

將文本視圖繪製到進度條的頂部。然後根據進度動態增加textview的寬度。 – kgandroid

+0

我希望文字隨着進度點移動 – John

回答

3

可以使用NumberProgressBar lib

enter image description here

搖籃

dependencies { 
    compile 'com.daimajia.numberprogressbar:library:[email protected]' 
} 

使用它在自己的代碼:

<com.daimajia.numberprogressbar.NumberProgressBar 
    android:id="@+id/number_progress_bar" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
/> 

some others too

+0

@John請檢查我的更新答案。 –