Android:ScrollView与NestedScrollView [英] Android: ScrollView vs NestedScrollView

查看:555
本文介绍了Android:ScrollView与NestedScrollView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ScrollViewNestedScrollView有什么区别?它们都扩展FrameLayout.我想深入了解两者的优缺点.

What is the difference between ScrollView and NestedScrollView? Both of them, extend FrameLayout. I want to know in depth pros and cons of both of them.

推荐答案

NestedScrollView用于需要在另一个滚动视图内使用滚动视图的情况.通常,由于系统无法确定要滚动的视图,因此很难实现.

NestedScrollView as the name suggests is used when there is a need for a scrolling view inside another scrolling view. Normally this would be difficult to accomplish since the system would be unable to decide which view to scroll.

这是NestedScrollView出现的地方.

这篇关于Android:ScrollView与NestedScrollView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆