HorizontalScrollView 水平滚动控件
2015-11-13 09:50
337 查看
HorizontalScrollView 控件支持水平滚动,而且在ScrollView中只能包含一个控件,通常是标签中定义了一个标签,然后在中放置多个控件。
案例代码:
案例代码:
这里写代码片
<?xml version="1.0" encoding="utf-8"?> <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ying" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/jie" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/me" /> </LinearLayout> </HorizontalScrollView>
相关文章推荐
- 如何方便的记忆大端存储与小端存储
- python xlwt写excel格式控制 颜色、模式、编码、背景色
- 学习网站
- 8.c/c++程序员面试宝典-switch语句
- 导航Title
- iOS 中 Cookie的简单使用
- 设置ViewPager的切换动画简单的实现
- ubuntu 14.04 登录界面无法进入系统
- foxmail 企业邮箱密码修改
- 每天一篇javascript学习小结(Date对象)
- 使用GCD
- mybatis
- Android: 修改文件 保存 ERROR;
- Git命令详解
- isapi_redirect-1.2.14下载地址
- Linux防火墙:iptables禁IP与解封IP常用命令
- POJ 2112—— Optimal Milking——————【多重匹配、二分枚举答案、floyd预处理】
- 将一个正方形分成4个大小一样的小正方形,再将其中一个小正方形分成4个小正方形,如此类推,分割n次是几个正方形?
- Tomcat源码解读系列——Tomcat对HTTP请求处理的整体流程
- 添加字体与字符集locale支持(基于busybox文件系统)