scrollView.setFillViewport
时间: 2023-09-08 12:12:52 浏览: 240
你可以在ScrollView中添加属性`android:fillViewport="true"`来实现填充满ScrollView的效果。这个属性的作用是让ScrollView中的组件充满ScrollView的可视区域。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [ScrollView中添加一个android:fillViewport="true](https://blog.csdn.net/u010015108/article/details/53009476)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Android fillViewPort属性用法](https://blog.csdn.net/weixin_34242331/article/details/94611017)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文