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

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

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

更多相关文章

  1. android 获取界面上所有控件
  2. Android开发——控件基础(七)ListView组件:示例代码
  3. android获得屏幕高度和宽度
  4. Android 中 EditText 的 inputType 属性及其他常用属性详解
  5. Android实现圆形头像-使用自定义控件
  6. Android studio gradle 生成字段属性值
  7. Android 获取View高度宽度
  8. android -布局控件禁用多点触控
  9. 在AndroidManifest.xml文件中的android:windowSoftInputMode属性

随机推荐

  1. 旷视科技提出SPCNet:一种任意形状的场景文
  2. 商汤等提出:统一多目标跟踪框架
  3. docker基本操作
  4. 怎样修复 Web 程序中的内存泄漏
  5. 剑桥小姐姐的国内AI算法面试经历
  6. 在 Vue.js 中制作自定义选择组件
  7. JavaScript 执行线程图解
  8. 在 Vue.js 中使用嵌套路由
  9. 5 分钟搭建 Node.js 微服务原型
  10. 用函数式编程在 JS 中开发游戏