android:tag="sticky" is not working on custom layouts using <include />
Opened this issue · 1 comments
tomasro27 commented
I built a custom layout for a header. From my activity layout I am using that custom layout (which is in another xml file). I am using the layout with
< include
layout="@layout/event_item"
android:id="@+id/eventInfoHeader"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:tag="sticky"
/>
However, it doesn't recognize the sticky.
Note: By wrapping this include layout inside a LinearLayout I was able to set the android:tag="sticky" and it worked. However, it required this extra step and nested layouts.
mehul0 commented
I facing the same issue.