I have a FrameLayout
that contains a TextView
and two LinearLayout
s:
Are you using this as the main layout of your activity? If so, you can replace it with a merge tag like this:
... a textview and 2 linearlayouts
At setContentView
, Android will take the children of the merge tag and directly insert them to the FrameLayout
with @android:id/content
. Examine both approaches (FrameLayout
vs merge
) with HierarachyViewer
to see the difference.