android 控件 卷轴视图(ScrollView)
来源:互联网 发布:nginx url 限制ip 编辑:程序博客网 时间:2024/04/29 04:57
1、继承关系和子类:
2、定义:
ScrollView滚动视图是指当拥有很多内容,屏幕显示不完时,需要通过滚动跳来显示的视图。ScrollView只支持垂直滚动。
注,ScrollView不要和 ListView结合使用,ListView会自己自己的垂直滚动。
3、XML重要属性:
4、重要方法:
布局文件
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" > <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> <ImageView android:layout_width="wrap_content" android:layout_height="200dp" android:src="@drawable/ic_launcher" /> </LinearLayout></ScrollView>参考1:http://developer.android.com/intl/zh-cn/reference/android/widget/ScrollView.html
参考2:http://android.tgbus.com/Android/tutorial/201107/360548.shtml
0 0
- android 控件 卷轴视图(ScrollView)
- Android学习笔记:ScrollView卷轴视图
- Android控件之ScrollView(滚动视图)
- 滚动视图控件ScrollView
- Android控件篇之视图控件scrollview探索
- Android布局控件之ScrollView(滚动视图)
- ScroolView卷轴视图
- Android ScrollView 滚动视图
- android控件之ScrollView
- android控件:ScrollView/HorizontalScrollView
- Android基础控件 - ScrollView
- android ScrollView控件使用
- Android中的ScrollView控件
- android控件12--ScrollView
- android 滚动视图(ScrollView)
- 【android之ScrollView滚动视图】
- 从零开始学android:Android基本控件(下)—— 滚动视图:ScrollView
- 高级控件之滚动视图(ScrollView)
- javascript 构造StringBuffer对象
- android 控件 网格视图(GridView)
- Linux下的多线程编程(linux pthread)
- 百度url参数分别代表什么意思?
- poj Set Definition
- android 控件 卷轴视图(ScrollView)
- 回调函数之 schedule定时器
- 修改系统文件访问权限的方法
- IPicture
- 3、从头学Android之Activity生命周期
- Linux下编译安装QT 4.8.2
- 旺仔的java基础之路——java的环境配置以及Helloworld(1)
- 4、从头学Android之Menu选项菜单
- html5新api对文件的操作