2016-10-24 9 views
0

キーボードの上にあるカスタムツールバーを使用して、ユーザーがEditTextビューのオプションを選択できるようにしました。これはポートレートモードでうまく動作しますが、私はそれをランドスケープモードで動作させる必要があります。今のところ、活動のための私のAndroidManifestはここキーボードの上に横向きのカスタムツールバー

<activity 
     android:name="MyActivity" 
     android:windowSoftInputMode="stateHidden|adjustResize" /> 

である私が横に向きを切り替えると、前述したようにXMLレイアウト

<RelativeLayout  
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

<!-- some content, including an edit text --> 

<!-- my toolbar that is supposed to sit on top of the keyboard --> 
    <HorizontalScrollView 
     android:id="@+id/custom_toolbar" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_height="@dimen/toolbar_height" 
     android:layout_alignParentBottom="true" /> 

で、これは肖像画で動作しますが、通常のキーボードしか表示されず、私のカスタムツールバーはありません。

カスタムツールバーはキーボードの上にあるはずですが、そうではありません。 enter image description here

答えて

0

EditTextに設定すると、フルスクリーン入力モードに切り替えることができなくなります。

関連する問題