What I’m trying to achieve is that I want to double my textbox as an progressbar. When the button is clicked the color of the contents of the textbox should change according to a certain method as soon as the method returns or you can say that when the color of a character is changed it is displayed on the screen instantly.
But I’m facing problems doing that because the app does nothing for 10 seconds and then displays whole text with color changed.
I have tried using AsyncTask and runOnUiThread but only getting results as above.
I’m new to Android so please advice me is there any way to do this?
Thanks in advance.