StickyScrollViewItems icon indicating copy to clipboard operation
StickyScrollViewItems copied to clipboard

android:tag="sticky" is not working on custom layouts using <include />

Open tomasro27 opened this issue 10 years ago • 1 comments

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.

tomasro27 avatar Feb 04 '15 02:02 tomasro27

I facing the same issue.

mehul0 avatar May 29 '18 10:05 mehul0