ObjectAnimator change text color with repeat and reverse

public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // ... TextView notPaidText = findViewById(R.id.not_paid); ObjectAnimator colorAnim = ObjectAnimator.ofInt( notPaidText, "textColor", Color.parseColor("#50ff0000"), Color.parseColor("#00ffffff") ); colorAnim.setEvaluator(new…