There is an issue with the include tag. Check: https://issuetracker.google.com/issues/36908001
To fix it, make sure you overwrite BOTH layout_width
and layout_height
when including, otherwise everything will be ignored.
More Related Contents:
- Percentage width in a RelativeLayout
- How to lay out Views in RelativeLayout programmatically?
- Differences between ConstraintLayout and RelativeLayout
- How to set RelativeLayout layout params in code not in xml?
- What is the purpose of Android’s tag in XML layouts?
- What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?
- Circular dependencies cannot exist in RelativeLayout, android?
- Can I Set “android:layout_below” at Runtime Programmatically?
- Extending RelativeLayout, and overriding dispatchDraw() to create a zoomable ViewGroup
- How can I programmatically include layout in Android?
- How do I programmatically remove an existing rule that was defined in XML?
- How to add a view programmatically to RelativeLayout?
- Android XML Layout Parameters Do Not Function As Expected
- Getting View’s coordinates relative to the root layout
- Adding Table rows Dynamically in Android
- What is the role of content_main.xml in android studio 1.4?
- How to use RadioGroup in ListView custom adapter?
- how to design any screen size and – density in Android(Multi screen for mobiles in Android)
- android:windowSoftInputMode=”adjustResize” doesn’t make any difference?
- Android – Inner element must either be a resource reference or empty
- Passing touch events to the parent view
- getSize() giving me errors
- Popup over incoming-call screen
- Different row layouts in ListView
- How to switch from the default ConstraintLayout to RelativeLayout in Android Studio
- Something’s wrong in Corner radius Android
- Android SlidingTabLayout with icons
- Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?
- What event is fired after all views are fully drawn?
- ERROR No package identifier when getting value for resource number