Partage
  • Partager sur Facebook
  • Partager sur Twitter

TextView/Button drawable

    5 novembre 2020 à 19:57:41

    Bonjour, j'essaie de mettre la couleur d'un texte tel que 
    android:textCursorDrawable="@drawable/gradient_1_3"

    ou 

    android:textColor="@drawable/gradient_1_3"


    mais je n'arrive pas à faire run l'animationDrawable tel que :

    val animationDrawableButtonPlay =
                buttonPlay.textCursorDrawable as AnimationDrawable
            animationDrawableButtonPlay.setEnterFadeDuration(2000)
            animationDrawableButtonPlay.setExitFadeDuration(4000)
            animationDrawableButtonPlay.start()

    Quelqu'un a une idée comment faire un animationDrawable pour la couleur d'un texte ?

    Cordialement,

    Ectario

    -
    Edité par Ectario 5 novembre 2020 à 19:58:02

    • Partager sur Facebook
    • Partager sur Twitter

    TextView/Button drawable

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown