I want to change the color of the title bar dynamically, ie: someone clicks a button, it changes the color. However, I can\'t seem to get it to fill the entire title bar. This o
Try this ((View) titleBar.getParent()).setBackgroundColor(R.color.title_bar_green);
It is not the best way to do the job. But if it works, then you will know that you need to set background color of R.id.title_bar parent.