I am using a custom title view and would like to show/hide a progressbar in the title view when a thread is working.
This is my title view\'s XML
<
use Communication with Handlers ,
run() : you should send a message to the Handler which will update the progressBar (Horizontal of course ) : handler.sendMessage(handler.obtainMessage());in your Activity , you should override the method handleMessage(Message msg ) : like this
handler = new Handler(){
@override
public void handleMessage(Message msg )
{
//here you write the code which will update your progressBar
}
};