Exception raised during rendering: TabHost requires FrameLayout with id "android:id/tabs" -
I have a terrible problem with TabHost inside my application. Actually, I'm changing the name of all the IDs How should I do this
alt = "Enter image details here">
Here's the whole top piece
& Lt; LinearLayout Android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: orientation = "vertical" Android: layout_alignParentTop = "true" & gt; & Lt; FrameLayout Android: id = "@ id / tabcontent" android: layout_width = "fill_parent" android: layout_height = "fill_parent" & gt; & Lt; / TabHost & gt; & Lt; LinearLayout Android: id = "@ + id / looks" Android: layout_width = "fill_parent" android: layout_height = "fill_parent" Android: orientation = "vertical" & gt; & Lt; / LinearLayout & gt;
Change ID of TabWidget
android: id Android: ID = "@Android: ID / tab" And << p> << code> code> @Android: id / tabcontent "
here is the full xml file Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & lt; LinearLayout Android: Orientation: & rdquo; & lt; tabHost; Android: id = "@Android: id / tabhost" Android: layout_width = "fill_parent" = "Vertical" Android: layout_width = "fill_parent" android: layout_height = "fill_parent"> gt; & lt; see Android: layout_height = "0.5dip" Android: background = "# 000" /> TabWidget Android: ID = "@Android: ID / Tab" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" android: layout_marginLeft = "0dip" android: layout_marginRight = "0dip" /> & Lt; See Android: layout_width = "fill_parent" android: El Ayout_height = "2dip" Android: background = "# 696969" /> & Lt; See Android: layout_width = "fill_parent" Android: layout_height = "2dip" Android: background = "# 000" /> & Lt; FrameLayout Android: id = "@ android: id / tabcontent" android: layout_width = "fill_parent" android: layout_height = "fill_parent" /> & Lt; / LinearLayout & gt; & Lt; / TabHost & gt;
Comments
Post a Comment