android - CircleProgress Bar Android 的自定义字体

标签 android fonts android-progressbar

我正在使用 github 中的这个库来获取 CircleProgress。一切正常,但我想为百分比使用自定义字体。

ArchProgress 属性

<declare-styleable name="ArcProgress">
    <attr name="arc_progress" format="integer"/>
    <attr name="arc_angle" format="float"/>
    <attr name="arc_stroke_width" format="dimension"/>
    <attr name="arc_max" format="integer"/>
    <attr name="arc_unfinished_color" format="color"/>
    <attr name="arc_finished_color" format="color"/>
    <attr name="arc_text_size" format="dimension"/>
    <attr name="arc_text_color" format="color"/>
    <attr name="arc_suffix_text" format="string"/>
    <attr name="arc_suffix_text_size" format="dimension"/>
    <attr name="arc_suffix_text_padding" format="dimension"/>
    <attr name="arc_bottom_text" format="string"/>
    <attr name="arc_bottom_text_size" format="dimension"/>
</declare-styleable>

https://github.com/lzyzsd/CircleProgress

有谁知道如何在此进度条 (ArcProgress) 中向文本添加自定义字体?

最佳答案

看起来您必须按照他们的说明下载代码并编辑代码 here

关于android - CircleProgress Bar Android 的自定义字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42764689/

相关文章:

android - 具有空 View 和加载 View 的 ListView

android surfaceview 在进入后台时崩溃

android - 如何禁用其他连接的.if wifi可用

fragment 的 onCreateView 中的 Android Font Face。

javascript - 动态添加 Remove font awesome in to span?

android - ActionBarSherlock 不确定的进度指示器不会在模拟器中消失

android - sqlcipher中的数据库迁移

java - Firebase 安卓。如果我多次添加同一个监听器怎么办?

ios - 更改 UIDatePicker 字体颜色?

android - 资源安卓 :attr/android:progressBarStyle not found