Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android nestedScrollView - how to make it horizontal?

Tags:

android

I cant seem to find an option for nestedScrollView to make it horizontal instead of vertical. i have been using HorizontalScrollView but i'd like to switch to nested. Is there anyway to do this ? searching the docs i dont see it yet it does say its the same as a scrollview ?

like image 750
j2emanue Avatar asked Jun 28 '17 09:06

j2emanue


1 Answers

No

I do not believe NestedScrollView can be scrolled horizontally. According to docs:

For vertical scrolling, consider NestedScrollView instead of scroll view which offers greater user interface flexibility and support for the material design scrolling patterns.

As per the text in bold, I believe NestedScrollViews were only made to scroll vertically.

While NestedScrollViews are "just like ScrollView" (link), the docs do also state that:

Scroll view supports vertical scrolling only. For horizontal scrolling, use HorizontalScrollView instead.

(Both blockquotes come from here)

like image 173
Alexander Costa Avatar answered Nov 23 '22 09:11

Alexander Costa