Answer the question
In order to leave comments, you need to log in
if check. How to make a loop in java?
There is an application code that changes the color of some text in a certain period of time
if ( hour == 9 || (hour == 10 && min <= 20) ) {
txt.setTextColor(Color.GREEN);
}
Answer the question
In order to leave comments, you need to log in
With while, but in a separate thread, so as not to block the entire UI
You can create a background service and start a timer there. At the end of the broadcast time, intercept the end of the timer and change the color
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question