注册

软键盘弹出遮住了输入框

软键盘弹出将输入框遮住了,设置了getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE|WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);但是输入框死活看不到。
已邀请:
这个应该是因为你修改了 EditText 的背景样式导致的,具体怎么让修改之后还能用我还没研究过
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:hyphenate="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:animateLayoutChanges="true" android:background="#f2f0eb" > <com.hyphenate.easeui.widget.EaseTitleBar android:id="@+id/title_bar" android:layout_width="match_parent" android:layout_height="wrap_content" hyphenate:titleBarLeftImage="@drawable/ease_mm_title_back" /> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/title_bar" android:fillViewport="true" android:fitsSystemWindows="true"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/input_menu" > <com.hyphenate.easeui.widget.EaseChatMessageList android:id="@+id/message_list" android:layout_width="match_parent" android:layout_height="match_parent" /> <com.hyphenate.easeui.widget.EaseVoiceRecorderView android:id="@+id/voice_recorder" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:visibility="invisible" /> </RelativeLayout> <com.hyphenate.easeui.widget.EaseChatInputMenu android:id="@+id/input_menu" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" /> </RelativeLayout> </ScrollView> </RelativeLayout>
 

要回复问题请先登录注册