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(安卓)Tool——Hierachy Viewer可视化调试
  2. Android中自定义控件
  3. Android无障碍总结
  4. Android界面布局基本知识简述
  5. Android开发——控件基础(七)ListView组件:示例代码
  6. android 获取界面上所有控件
  7. android获得屏幕高度和宽度
  8. Android(安卓)中使用自定义字体的方法
  9. Android实现圆形头像-使用自定义控件

随机推荐

  1. jquery 监控文本框键盘事件(回车事件),附常
  2. 使用javascript进行内容占位符问题的第二
  3. 围绕一个带有jQuery旋钮的输入元素。
  4. 如何在java脚本中获取节点内部文本?
  5. jQuery实现checkbox的全选和反选
  6. jquery 循环添加事件
  7. 将ajax GET请求发送到ASP .NET Web API
  8. 如何在流体宽度旋转木马中的页面之间创建
  9. 5秒后删除新的div
  10. jQuery中的ajax服务端返回方式