【发布时间】:2020-01-19 09:19:46
【问题描述】:
这是我的对话框布局内容。单击屏幕上的按钮时,将显示此对话框,并被键盘覆盖。如何解决这个问题?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:background="#FFFFFF"
android:layout_width="400dp"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="textview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<EditText
android:layout_width="30dp"
android:layout_alignParentBottom="true"
android:layout_height="wrap_content" />
</RelativeLayout>
</LinearLayout>
【问题讨论】:
-
您在单击按钮或单击 EditText 时打开键盘??
标签: android android-softkeyboard