Skip to content Skip to sidebar Skip to footer

Scroll Background While Foreground Objects Stay Static In Android

I have scrollable custom view. It's working well. I want to be able to add a horizontal LinearLayout in the foreground of that view. Very importantly, I want the LinearLayout to s

Solution 1:

Wrap everything in a FrameLayout or a RelativeLayout. Make sure your foreground object is the last item in the layout so it acts as an overlay.


Post a Comment for "Scroll Background While Foreground Objects Stay Static In Android"