【问题标题】:Horizontal progress bar with text at progress points进度点处带有文本的水平进度条
【发布时间】:2016-09-27 10:31:10
【问题描述】:

如何在进度点创建带有指示文本水平进度条。我想创建一个这样的进度条。

【问题讨论】:

  • 在进度条顶部绘制一个文本视图。然后根据进度动态增加文本视图的宽度。
  • 我希望文本随着进度点移动
  • @John 你有解决办法吗?答案会有所帮助,因为我需要实现类似的东西。

标签: android xml android-layout android-studio android-progressbar


【解决方案1】:

你可以使用NumberProgressBar lib

分级

dependencies {
   compile 'com.daimajia.numberprogressbar:library:1.4@aar'
}

在你自己的代码中使用它:

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

some others too

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-18
    • 1970-01-01
    • 1970-01-01
    • 2015-11-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多