I wanted to try out this funny title bar coloring, but it doesn't work for me as
getWindow().findViewById(android.R.id.title);
returns null. So I had a look at it with Hierarchy Viewer and found out that the view is called id/action_bar
instead. But there's no R.id.action_bar
(autocomplete doesn't offer it and there's nothing like this is R.java
).
So now I'm doubly confused:
- Is
android.R.id.title
sort of obsolete now (I'm using version 16 in my emulator)? - Where does
id/action_bar
come from? - What's the recommended and simple practice w.r.t. compatibility?
Should I get ActionBarSherlock? I originally just wanted to change the title bar color... not fool around with it a lot.