Android(4及更高版本)键盘使可视按钮不可点击

Android(4及更高版本)键盘使可视按钮不可点击,android,keyboard,Android,Keyboard,当我点击编辑文本时,键盘出现。当键盘打开时,有一个按钮仍然可见,但不可单击。只有当你点击“后退”按钮和键盘消失时,你才能点击那个按钮。我希望能够在键盘可见时单击该按钮。这个问题只适用于4和更高版本的android,在旧版本中一切正常 我怎样才能使可视按钮即使在键盘弹出时也可以点击 代码如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schem

当我点击编辑文本时,键盘出现。当键盘打开时,有一个按钮仍然可见,但不可单击。只有当你点击“后退”按钮和键盘消失时,你才能点击那个按钮。我希望能够在键盘可见时单击该按钮。这个问题只适用于4和更高版本的android,在旧版本中一切正常

我怎样才能使可视按钮即使在键盘弹出时也可以点击

代码如下:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:mm="http://millennialmedia.com/android/schema"
android:id="@+id/mainLayout"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<ImageView android:id="@+id/topLogo"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:contentDescription="@string/logo_desc"
    android:src="@drawable/top_logo" />      

<EditText
    android:id="@+id/searchField"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_below="@+id/topLogo"
    android:inputType="textPersonName" >
</EditText>   

<Button
    android:id="@+id/searchButton"
    style="?android:attr/buttonStyleSmall"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/searchField"
    android:layout_centerHorizontal="true"
    android:text="@string/search_button_label"  />        

</RelativeLayout>

Turns-own
导致了问题。它与所有其他组件处于相同的相对位置。将MMAdView放到主布局中的另一个布局解决了问题。

自转
导致了问题。它与所有其他组件处于相同的相对位置。将MMAdView放到主布局中的另一个布局中解决了问题