Here's the simplest, most robust, and scalable solution to get tabs on the bottom of the screen.
- In your vertical LinearLayout, put the FrameLayout above the TabWidget
- Set
layout_height
towrap_content
on both FrameLayout and TabWidget - Set FrameLayout's
android:layout_weight="1"
- Set TabWidget's
android:layout_weight="0"
(0 is default, but for emphasis, readability, etc) - Set TabWidget's
android:layout_marginBottom="-4dp"
(to remove the bottom divider)