(Source code introduction
Tabhost can be implemented in three ways: inherited from tabactivity, activitygroup and customized activity implementation rendering:
Note: when I inherit tabactivity, when I set the android:layout of tabwidget_ When height is set to fill\u parent, nothing is displayed in the tab. As shown in the figure
If the IDs of tabwidget and FrameLayout are modified, the system will report the corresponding label, that is, the default ID called in the setup method. Because he will only find Android in the current layout R. Id.tabs and android R. Id.tabcontent.
If you want the tab to be displayed at the bottom, you just need to exchange the positions of the tabwidget and FrameLayout.)