2016-10-24 2 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위한 android:imeOptions="flagNoExtractUi"을 설정할 수있다.

관련 문제