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" />
正如上面提到的,这个工作在画像,但是当我切换方向为横向,我只看到通常的键盘,而我的自定义工具栏不存在