Skip to content Skip to sidebar Skip to footer

Illegalargumentexception When Using Fragment With Tab

Below is the code for my Fragment Activity in which I am using tab layout.The code seems to be working just fine but from no where its starting giving exception.I already checked m

Solution 1:

write

<FrameLayout
                android:id="@+id/realtabcontent"
                android:layout_width="fill_parent"
                android:layout_height="0dp"
                android:layout_weight="1"/>

instead of

<FrameLayout
                android:id="@+android:id/realtabcontent"
                android:layout_width="fill_parent"
                android:layout_height="0dp"
                android:layout_weight="1"/>

in the layout

Post a Comment for "Illegalargumentexception When Using Fragment With Tab"