您的位置:首页 > 产品设计 > UI/UE

android:fillViewport="true"

2016-05-19 17:47 393 查看
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true">


fillViewport用于ScrollView,

当ScrollView里面的空间高度大于ScrollView的时候,这个属性无足轻重,设置成true也没意义;

当子控件高度低于的时候,该属性就起了作用,子控件想实现”match_parent”的效果,没有同时加上:fillViewport=”true”的话是不会有效果的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: