我正在使用 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/