EditText嵌套到ScrollView中时无法完全铺满
无法 完全 嵌套 EditText ScrollView
2023-09-27 14:27:30 时间
问题描述
单独EditText时,可以完全铺满父控件,但是放到ScroolView后,就缩成一行了.
解决方案
在ScrollView中增加android:fillViewport="true"
.
如:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:fillViewport="true">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:gravity="top"
android:inputType="textMultiLine" />
</ScrollView>
相关文章
- 关于华为2288hv2的后置2.5寸硬盘无法识别做centos系统盘的问题。
- Flask中无法在其他函数中查询Sqlachemy的解决办法
- 【ScrollView】Android ScrollView无法滚动到底部
- error: 无法连接到Web服务器“IIS Express”
- vue-cli项目npm run build后,index.html无法在浏览器打开
- 硬件笔记之英特尔NUC无法进入BIOS
- 转自: linux svn命令行无法拉取中文名称的文件
- 闪存面临与汉堡类似的难题:层数无法一直增加
- SQLSERVER2008R2 本地客户端无法连接的问题
- VirtualBox中的虚拟机在Ubuntu 下无法启动之问题解决
- MySQL误删root用户导致无法登陆解决方法
- 安卓Q无法获取剪贴板问题
- 解决黑苹果无法使用Siri、iMessage等服务
- c#-集合已修改;可能无法执行枚举操作
- codeblocks20版本无法找到编译器的解决方法
- bootstrap glyphicon图标无法显示
- git无法pull仓库refusing to merge unrelated histories