首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将键盘推得比adjustPan更高

将键盘推得比adjustPan更高
EN

Stack Overflow用户
提问于 2015-11-03 19:38:38
回答 1查看 145关注 0票数 2

我想知道是否有办法让我的scrollView比"android:windowSoftInputMode="adjustPan"更上一层楼。它现在看起来有点狭小。enter image description here

这是一张照片

EN

回答 1

Stack Overflow用户

发布于 2015-11-03 20:12:47

你应该使用

"android:windowSoftInputMode="adjustUnspecified"

Layout .....check -> layout_height for both

代码语言:javascript
复制
<RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="55dp"
            android:background="#F7F7F7"
            android:layout_alignParentBottom="true">

     <EditText 
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:hint="New Message"
            android:textSize="16sp"
            android:gravity="center_vertical"
            android:background="@drawable/round_corner_msg_box"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:paddingLeft="5dp"
            android:paddingStart="5dp"
            android:layout_margin="5dp"/>

</RelativeLayout>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33498173

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档