Email or username:

Password:

Forgot your password?
Top-level
Григорий Клюшников

Do make the scrollable things extend to the edges of the screen though. That clipping looks odd. Or, if you can't, do this:

4 comments
dansup

@grishka Oh yeah, great point!

Will eliminate the right margin so they extend to the edge of the screen.

Григорий Клюшников

dansup, the left one too, this is what I mean

dansup

@grishka Oh I see, that will be a bit trickier, but I will see what I can do!

Григорий Клюшников

dansup, I usually achieve this effect by setting the paddings on the scrollable content such that it lines up with the surrounding layout when scrolled all the way to either side. For HorizontalScrollView with a LinearLayout inside, I set the horizontal paddings on the LinearLayout. For RecyclerView, I set the horizontal paddings on it itself and clipToPadding="false".

Go Up