Android nestedScrollView - how to make it horizontal?

前端 未结 3 1379
长发绾君心
长发绾君心 2021-01-04 02:53

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 t

相关标签:
3条回答
  • 2021-01-04 03:25

    NestedScrollViews is not a good approach . Better approach is to use recyclerview iniside another recyclerview.

    0 讨论(0)
  • 2021-01-04 03:26

    There is no support to enable the Horizantal nested scrollview in android. Support is only limited to vertical scrollview.

    0 讨论(0)
  • 2021-01-04 03:33

    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)

    0 讨论(0)
提交回复
热议问题