I wanted to try this funny heading coloring , but it doesn't work for me like
getWindow().findViewById(android.R.id.title);
returns null. So I looked at it using the Hierarchy Viewer and found out that the view is called id/action_bar . But there is no R.id.action_bar (autocomplete does not offer it, and there is nothing like R.java ).
So now I'm doubly confused:
android.R.id.title deprecated now (am I using version 16 in my emulator)?- Where
id/action_bar ? - What is the recommended and easy practice of wrt compatibility?
Should I get an ActionBarSherlock? I initially just wanted to change the color of the title ... not to fool around with it a lot.
source share