Romain Guy write a little info about a ScrollView attribute that ismissingfrom documentation : android:fillViewport=”true” .

It must be set to ScrollView and has thefollowingefect : when set to true, this attribute causes the scroll view’s child to expand to the height of theScrollView if needed. When the child is taller than theScrollView, the attribute has no effect.

当你想让一个高度值不足scrollview的子控件fillparent的时候,单独的定义android:layout_height="fill_parent"是不起作用的,必须加上fillviewport属性,当子控件的高度值大于scrollview的高度时,这个标签就没有任何意义了。

更多相关文章

  1. Android学习--Android带删除按钮的ListView
  2. Android/Linux大于1024Bytes打印
  3. Android(安卓)ListView 控件学习
  4. Android(安卓)遍历ListView条目控件
  5. Android的帧布局
  6. Android(安卓)UI控件详解-Button(按钮)点击事件的5种写法
  7. android水平循环滚动控件
  8. android 获取屏幕高度和宽度
  9. android URL获取图片显示到ImageView 控件上

随机推荐

  1. Android RadioGroup 设置默认值之后 Radi
  2. 微信ANDROID客户端-会话速度提升70%的背
  3. View类的XML属性、相关方法及说明
  4. Android(安卓)仿淘宝选中商品不同尺寸的
  5. [Android]Android FTP Server
  6. android fragment ontouch 事件
  7. 一次偶然机遇找到一个不错的关于Android
  8. Android锁屏 DevicePolicyManager介绍
  9. [Android] 如何查看当前分支
  10. Android:interpolator用法