scrollView为什么只有一个子布局
来源:互联网 发布:淘宝15天自动确认收货 编辑:程序博客网 时间:2024/04/27 23:40
* Layout container for a view hierarchy that can be scrolled by the user,
* allowing it to be larger than the physical display. A ScrollView
* is a {@link FrameLayout}, meaning you should place one child in it
* containing the entire contents to scroll; this child may itself be a layout
* manager with a complex hierarchy of objects. A child that is often used
* is a {@link LinearLayout} in a vertical orientation, presenting a vertical
* array of top-level items that the user can scroll through.
* <p>You should never use a ScrollView with a {@link ListView}, because
* ListView takes care of its own vertical scrolling. Most importantly, doing this
* defeats all of the important optimizations in ListView for dealing with
* large lists, since it effectively forces the ListView to display its entire
* list of items to fill up the infinite container supplied by ScrollView.
* <p>The {@link TextView} class also
* takes care of its own scrolling, so does not require a ScrollView, but
* using the two together is possible to achieve the effect of a text view
* within a larger container.
*
* <p>ScrollView only supports vertical scrolling. For horizontal scrolling,
* allowing it to be larger than the physical display. A ScrollView
* is a {@link FrameLayout}, meaning you should place one child in it
* containing the entire contents to scroll; this child may itself be a layout
* manager with a complex hierarchy of objects. A child that is often used
* is a {@link LinearLayout} in a vertical orientation, presenting a vertical
* array of top-level items that the user can scroll through.
* <p>You should never use a ScrollView with a {@link ListView}, because
* ListView takes care of its own vertical scrolling. Most importantly, doing this
* defeats all of the important optimizations in ListView for dealing with
* large lists, since it effectively forces the ListView to display its entire
* list of items to fill up the infinite container supplied by ScrollView.
* <p>The {@link TextView} class also
* takes care of its own scrolling, so does not require a ScrollView, but
* using the two together is possible to achieve the effect of a text view
* within a larger container.
*
* <p>ScrollView only supports vertical scrolling. For horizontal scrolling,
* use {@link HorizontalScrollView}.
看到官方的文档他的作用是为了让一个布局可以滑动,并且A ScrollView
* is a {@link FrameLayout}, meaning you should place one child in it说的是他是一个帧布局,故只能有一个子布局了
记下来提醒自己
0 0
- scrollView为什么只有一个子布局
- ngui 的scrollview grid 只有一个子对象时 不会弹回
- 为什么只有一个韩寒?
- 为什么只有一个public类
- 演示2-3树删除时为什么空节点只有一个子节点
- 为什么一个实例只有一个LGWR
- 为什么一个实例只有一个LGWR .
- 为什么一个实例只有一个LGWR .
- ScrollView子布局填满整个屏幕
- scrollview中的子控件填满布局
- ScrollView子布局如何充满全屏
- 为什么地球上只有一个硅谷?
- ScrollView只能有一个子控件
- Android之为什么一个线程只有一个Handler,Looper
- 解决scrollview 子布局不能充满屏幕的问题
- iOS 关于scrollView内部子控件的自动布局
- 为什么互联网+只有一个+?而C++是两个+?
- 软件开发中设计为什么应该只有一个所有人?
- 第24章、OnLongClickListener长按事件(从零开始学Android)
- android-misc-widgets多方抽屉bug修复版 解决“闪烁”问题
- 台湾清华获SC14最高计算性能冠军
- P2P 充值 设计原理图
- jQuery实现全屏幻灯片的滚动页面特效
- scrollView为什么只有一个子布局
- pomelo js 经典函数
- jquery + php 的 getJSON()跨域实例
- pgxc 连接池的数据结构间关系
- Struct <s:select>标签的属性
- div渐变
- java socket http server
- 为什么NOT IN比NOT EXISTS效率差
- Linux 系统启动过程【转】