scrollview 中放LinearLayout 或imageview下面有空白区域
来源:互联网 发布:mysql 主键自增 编辑:程序博客网 时间:2024/05/01 15:48
有时候在scrollview中放置其他组件时,如imageview不能完全充满scrollview 我也试出来的可以:<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent" // 关键设置
android:layout_height="fill_parent" // 关键设置 不能用match_parent
android:fillViewport="true"
android:layout_alignParentBottom="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" // 关键设置
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent" // 关键设置
android:layout_height="fill_parent" // 关键设置 不能用match_parent
android:fillViewport="true"
android:layout_alignParentBottom="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" // 关键设置
android:orientation="vertical" >
</LinearLayout>
</ScrollView>
如此就解决了。 但不是很理解,高手请指教
0 1
- scrollview 中放LinearLayout 或imageview下面有空白区域
- ScrollView中放ImageView在顶部和底部出现空白的解决方案
- Android ScrollView 中放入 ImageView 的出现上下空白
- ios 有scrollview的时候点击键盘以外空白区域隐藏键盘
- Listview中嵌套ImageView,ImageView高度自适应时,显示不占满布局有空白,解决方案
- android 异常问题 Scrollview中嵌套webview出现大面积空白(第二次打开同一个地址下面才出现空白)
- 解决ImageView上下有空白的办法
- 解决ImageView上下有空白的办法
- 解决ImageView上下有空白的办法
- 为什么<img>标签下面有空白
- Android中 在显示ImageView时图片上面和下面都出现一段空白区间的解决办法
- Android中 在显示ImageView时图片上面和下面都出现一段空白区间的解决办法
- Android中 在显示ImageView时图片上面和下面都出现一段空白区间的解决办法
- scrollView中设置ImageView大小
- 151127UITableView顶部有一个空白区域
- UITableView四周有多余的空白区域
- ScrollView中放ListView问题
- Android Linearlayout中动态添加ImageView
- 三分题目
- 自定义导航栏UINavigationBar
- 基础总结一
- 我的IT资讯阅读列表
- 让apache支持重写模式
- scrollview 中放LinearLayout 或imageview下面有空白区域
- md5加密空字符串得到得的值
- Unity3d / 3ds max 模型分享网站
- 排序总结之简单选择排序
- 网站在IIS下运行正常,但是在Apache下显示500错误的解决方案
- 破解EBS R12应用和数据库用户密码
- 大龙的胡思乱想之“filestream中offset参数”
- Windows下u-boot-2011.03在Mini2440移植详解(6)
- IOS开发-常用网站集合