Skip to content Skip to sidebar Skip to footer

Seekbar At The Top Of The Layout In Android

I would like to reproduce the SeekBar position of Google Music application but I can’t find a way to do it. I’ve tried padding and margin without success. Here is what I’d li

Solution 1:

You'll need to overlap the ViewPager with the SeekBar. The easiest way to accomplish that is by having the ViewPager and the SeekBar in the same RelativeLayout, with the SeekBar having a negative android:layout_marginTop.

In your layout, it's probably easiest to replace LinearLayout with a RelativeLayout with three children: the ViewPager, the nested RelativeLayout and the Seekbar.

Post a Comment for "Seekbar At The Top Of The Layout In Android"