1. menu bar ran to the top of the screen, not at the bottom, saw a long time to find out the layout with relativelayout, changed the LinearLayout good.
2. Write the resource file when not pay attention to a drawable-v21, resource files ran this inside and then run wrong
Binary XML file line #2: Error inflating class <unknown>
Resources$notfoundexception:resource ID #0x7f030009
(resource introduced incorrectly), move the resource file to drawable, OK
3. The font color of the menu bar can be set with selector, but this selector should be placed under Res/color
Item with Android:color no problem
<item android:color= "@color/mediumaquamarine" android:state_selected= "true" ></item>
<item Android:color= "@color/grey" android:state_selected= "false" ></item>
I was watching the rookie mall video, but there is no complete, there is also a blog Introduction menu bar Implementation http://blog.csdn.net/yangyu20121224/article/details/9016223