The result you showed most likely indicates a Margin / Padding error, and not a layout error. Either your TabWidget or your FrameLayout can have inheritance inherited by the common theme that you use.
Most likely, this will fix the problem (pay attention to additional styles of fields / additions):
<FrameLayout android:layout_marginBottom="0dip" android:layout_paddingBottom="0dip" android:background="@android:color/holo_green_light" android:id="@android:id/tabcontent" .... .... /> <TabWidget android:layout_marginTop="0dip" android:layout_paddingTop="0dip" android:background="@android:color/holo_blue_light" android:id="@android:id/tabs" .... .... />
Your FrameLayout can also have any nested components that have margin / padding and which, in turn, can cause spaces. I added android:background for both FrameLayout and TabWidget to help troubleshoot if there is a space between them.
You said that you tried to put the background color of the TabWidget in transparent, but this will not help, because if there is a margin, then the main background color of the action is displayed as white, below the transparent area. If you set the overall background color of the RelativeLayout to something like cyan, then you will see how blue goes. Therefore, fix margin / padding, and do not try to hide it.
Subhas
source share