2017-03-13 1 views
2

J'utilise cette bibliothèque de github pour obtenir CircleProgress. Tout fonctionne bien, mais je voudrais utiliser une police personnalisée pour le porcentage.police personnalisée pour CircleProgress Bar Android

attrs pour 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

quelqu'un sait comment ajouter une police personnalisée au texte dans cette barre de progression (ArcProgress)?

Répondre

1

On dirait que vous devez télécharger le code et modifier le code comme ils expliquent here

+0

merci !!! Ça marche)) – cristian