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

查看:28
本文介绍了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 的用武之地.

This is where NestedScrollView comes in.

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

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