这是我的Fragment的布局文件。为什么Android Softkeyboard隐藏最底层的TextView?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<!-- android:fillViewport="true" -->
<EditText
android:id="@+id/chatDispWindow"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_above="@+id/chatTypeWindow"
android:layout_alignParentTop="true"
android:layout_marginLeft="9dp"
android:layout_marginRight="6dp"
android:background="@color/background_color"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:gravity="bottom"
android:inputType="textMultiLine|textLongMessage|textNoSuggestions"
android:scrollHorizontally="true" />
<!-- android:hint="@string/groupChatDispMsg" -->
<ImageButton
android:id="@+id/sendBtn"
android:layout_width="52dp"
android:layout_height="46dp"
android:layout_above="@+id/chatStatusWindow"
android:layout_alignBottom="@+id/chatTypeWindow"
android:layout_alignParentRight="true"
android:layout_marginBottom="-3dp"
android:layout_marginLeft="4dp"
android:background="@drawable/send_chatbtn_selector"
android:contentDescription="@string/sendLbl" />
<EditText
android:id="@+id/chatTypeWindow"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_above="@+id/chatStatusWindow"
android:layout_alignParentLeft="true"
android:layout_marginLeft="6dp"
android:layout_toLeftOf="@+id/sendBtn"
android:background="@drawable/editbox_selector"
android:imeActionId="@+id/sendChatImeBtn"
android:imeActionLabel="@string/sendLbl"
android:imeOptions="actionSend"
android:inputType="textMultiLine"
android:minHeight="45dp" />
<!-- android:hint="@string/chatWindowMsg" -->
<TextView
android:id="@+id/chatStatusWindow"
android:layout_width="match_parent"
android:layout_height="15dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="3dp"
android:layout_marginLeft="9dp" />
<!-- android:text="@string/chatStatusMsg" -->
</RelativeLayout>
这是现在应用的行为......
问题是键盘隐藏屏幕下方最TextView的,我怎样才能让可见光连如果键盘显示?
我试过使用android:windowSoftInputMode="adjustResize"
但它不工作。请大家帮忙,
编辑 进一步深挖中后我才知道,如果我删除全屏主题然后android:windowSoftInputMode="adjustResize
完美。如何使用FullScreen主题获得此功能?
我得到了完全相同的问题,有没有人知道解决方案? – Vigor 2015-08-08 16:03:23