CircleProgress Bar 的自定义字体 Android
custom font for CircleProgress Bar Android
我正在使用 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
我正在使用 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