社区
Android
帖子详情
动态弹出的EditText怎样紧挨着输入法上方?
十三邵
2015-09-23 01:34:12
并且想按返回键的时候输入法和EditText一起消失,但是现在有输入法的话,返回键的监听不好用,该怎么办?
...全文
251
4
打赏
收藏
动态弹出的EditText怎样紧挨着输入法上方?
并且想按返回键的时候输入法和EditText一起消失,但是现在有输入法的话,返回键的监听不好用,该怎么办?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
十三邵
2015-09-23
打赏
举报
回复
引用 3 楼 gao_chun 的回复:
简单粗暴有效果,十分感谢大神指点!!!
gao_chun
2015-09-23
打赏
举报
回复
gao_chun
2015-09-23
打赏
举报
回复
这是布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_message" android:layout_width="match_parent" android:layout_height="@dimen/dimen_85_dip" android:layout_alignParentBottom="true" android:background="@color/table_background" android:padding="1px" > <EditText android:id="@+id/edit_content" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="@color/white" android:hint="您想说 ..." android:padding="5dp" android:singleLine="true" /> <Button android:id="@+id/button_send" style="@style/text_16" android:layout_width="90dp" android:layout_height="match_parent" android:layout_marginLeft="1px" android:background="@drawable/row_selector" android:onClick="onClick" android:padding="5dp" android:text="发送" android:textColor="@color/main_color" /> </LinearLayout>
将其嵌入另一个布局的底部:
<!-- 输入评论内容 --> <include layout="@layout/layout_comment" />
gao_chun
2015-09-23
打赏
举报
回复
2022-09-06 Android
输入法
顶起输入框,遮挡RecyclerView
背景 IM项目中的会话界面,一般就是顶部一个标题,底部是输入区域,...点击输入框,弹起
输入法
,把输入区域和消息列表整体都顶起来,当输入区域顶起来触不到消息列表的最后一条,那仍然在列表显示比较少的消息列表 ...
Android 开发从入门到实战
数据定义语言全称Data Definition Language,简称DDL,它描述了怎样变更数据实体的框架结构。就SQLite而言,DDL语言主要包括3种操作:创建表格、删除表格、修改表结构,分别说明如下。创建表格表格的创建动作由...
Android中padding和margin的理解
此处无效果,需要
弹出
输入法
才能看得到,参见EditView此属性说明。 android:cursorVisible设定光标为显示/隐藏,默认显示。 android:digits设置允许输入哪些字符。如”1234567890.+-*/% ()” ...
Android界面特殊全汇总
android:layout_above 在某元素的的
上方
android:layout_toLeftOf 在某元素的左边 android:layout_toRightOf 在某元素的右边 android:layout_alignTop 本元素的上边缘和某元素的的上边缘对齐 ...
Android界面特效全汇总
</RelativeLayout>Android 基于 TranslateAnimation 的动画
动态
菜单 android 布局属性 文章分类:移动开发 第一类:属性值为 true 或 false android:layout_centerHrizontal ...
Android
80,351
社区成员
91,288
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章