Edit: As in a comment rightly requested here some more information. Use the include
tag
<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…
More Related Contents:
- What does android:layout_weight mean?
- How to display count of notifications in app launcher icon [duplicate]
- Placing/Overlapping(z-index) a view above another view in android
- Getting View’s coordinates relative to the root layout
- Show AlertDialog in any position of the screen
- Error while Running Android Application – Could not initialize OpenglES emulation, use ‘-gpu off’ to disable it
- Adding Table rows Dynamically in Android
- What is the role of content_main.xml in android studio 1.4?
- Appcompatv7 – v21 Navigation drawer not showing hamburger icon
- Wrap_content view inside a ConstraintLayout stretches outside the screen
- Add padding on view programmatically
- How to use RadioGroup in ListView custom adapter?
- how to design any screen size and – density in Android(Multi screen for mobiles in Android)
- What does ellipsize mean in android?
- android:windowSoftInputMode=”adjustResize” doesn’t make any difference?
- Android: programmatically adding buttons to a layout
- How to calculate dp from pixels in android programmatically [duplicate]
- MPAndroid Chart not displaying any labels for xAxis , what is missing?
- Position of DialogFragment in Android
- Android – Inner element must either be a resource reference or empty
- java.lang.StackOverFlow error. Suspected too many views?
- Passing touch events to the parent view
- getSize() giving me errors
- Put buttons at bottom of screen with LinearLayout?
- Popup over incoming-call screen
- Different row layouts in ListView
- Android Button Drawable Tint
- How to reference colour attribute in drawable?
- New Android Design Library bug with AppBarLayout and Toolbar
- Android Studio Project: bottom of UI is cut off