Change position of a specific view in SlidingUpPanel Layout.

Author: asrarsungeCreated Jan 14, 2021Updated Jan 30, 2021

Actually I can't get to achieve one thing.

Snap1 Snap2

As you can see in the images in my Android App, I've a SlidingUpPanel Layout with ImageView and Button. My main layout has a list view containing some items in it. Now what I want is that when the SlidingUpPanel Layout is collapsed,I want the ImageView to appear right after the button(on the right side) and when I expand the SlidingUpPanel, I want the ImageView to go back to its position.

How to achieve this. Any help will be highly appreciated. Thank You

Source: umano/AndroidSlidingUpPanel