How to include layout inside layout in Android?
I am creating common layout. I want to include that layout in another page.
Edit: As in a comment rightly requested here some more information. Use the include tag
include
<include android:layout_width="match_parent" android:layout_height="wrap_content" layout="@layout/yourlayout" />
to include the layout you want to reuse.
Check this link out...
2.1m questions
2.1m answers
60 comments
57.0k users