Android控件之ScrollView探究
来源:互联网 发布:淘宝云盘在哪里 编辑:程序博客网 时间:2024/06/03 20:56
ScrollView滚动视图是指当拥有很多内容,屏幕显示不完时,需要通过滚动跳来显示的视图。ScrollView只支持垂直滚动。
下面为实例:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
<ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/p1"
android:layout_gravity="center_horizontal"/>
</LinearLayout>
</ScrollView>
0 0
- Android控件之ScrollView探究
- Android控件之ScrollView探究
- Android控件之ScrollView探究
- Android控件之ScrollView探究
- Android控件之ScrollView(滑动控件)探究
- 【android基础】之Android控件之ScrollView探究
- android控件之ScrollView
- Android控件之ImageView探究
- Android控件之ProgressBar探究
- Android控件之TabHost探究
- Android控件之EditView探究
- Android控件之ToggleButton探究
- Android控件之ImageView探究
- Android控件之GridView探究
- Android控件之ProgressBar探究
- Android控件之TextView探究
- Android控件之Gallery探究
- Android控件之TabHost探究
- 关于在Android工程中新添加了一个Activity 而程序崩溃的问题
- 删除数组元素的方法
- 程序员需要知道的10个基本工具
- OpenLayers 3 之 地图控件(control)详解
- scanf函数与华为机试题
- Android控件之ScrollView探究
- 编程基本功之数组交叉合并
- 8大排序算法图文讲解
- java6,7,8中String.intern进化史与深度剖析
- oracle10g/11g 新特性十二(数据库空间管理)
- select from update row的实现
- ongoDB 基础(七)复制
- 开源 java CMS - FreeCMS2.3 站内信
- HM测试数据处理