In an Android application, I need to make a layout on top that contains ProgressBartext as shown in the image.
ProgressBar
As you can see in this image, the text is initially blue and ProgressBarwhite. Since it ProgressBarfills in blue, what I need to implement is to change the color of the text to white until the part is filled ProgressBar. Can anyone help with the logic for this?
you can use ArgbEvaluatorto get a new color
ArgbEvaluator
final ArgbEvaluator evaluator = new ArgbEvaluator(); int color = evaluator.evaluate(progress, YOUR_BLUE_HERE, Color.WHITE);
0 1
0
1
Source: https://habr.com/ru/post/1659596/More articles:How to dynamically create an existing non-abstract django model, abstract? - pythonHow to insert Big Integer into a prepared java statement - javaXcode build error: static setter referenced by user interface testing class - iosKarma PhantomJs - TypeError on Linux and on Win 7 all tests successful - linuxStrange Behavior (^) - haskellSimple web page in kivy app as widget - pythonHow does @ api.constrains work in Odoo 8? - pythonAn exception is in MouseInfo.getPointerInfo (). GetLocation () - javaNoSuchElementException kafka - javaUsing flow.js in Angular 2 Typescript - angularAll Articles