gpt4 book ai didi

android - CircleProgress Bar Android 的自定义字体

转载 作者:行者123 更新时间:2023-11-29 01:11:19 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com