Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/214.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 当软键盘出现滚动不工作,我尝试了很多东西,但没有工作?_Android_Android Layout - Fatal编程技术网

Android 当软键盘出现滚动不工作,我尝试了很多东西,但没有工作?

Android 当软键盘出现滚动不工作,我尝试了很多东西,但没有工作?,android,android-layout,Android,Android Layout,滚动不起作用的片段布局 我试过我喜欢的东西 android:WindowsOfInputMode=adjustPan 但什么都不管用 我已经检查了所有的输入模式,但没有任何适合我的模式 **应用程序主题 <?xml version="1.0" encoding="utf-8"?> <resources> <!-- Base application theme. --> <style name="MainTheme" parent="@style/The

滚动不起作用的片段布局 我试过我喜欢的东西 android:WindowsOfInputMode=adjustPan 但什么都不管用

我已经检查了所有的输入模式,但没有任何适合我的模式 **应用程序主题

<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Base application theme. -->
<style name="MainTheme" parent="@style/Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/primary</item>
    <item name="colorPrimaryDark">@color/primary_dark</item>
    <item name="colorAccent">@color/accent</item>
</style>

<style name="MyAppCompatDialogTheme" parent="MainTheme">
    <item name="android:windowIsFloating">false</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowSoftInputMode">stateAlwaysHidden</item>
    <item name="android:windowActionModeOverlay">true</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowFullscreen">false</item>
</style>

</resources>

您在哪里定义了ScrollView?请尝试在清单活动声明中使用android:WindowsOfInputMode=adjustPan,其中是xml中的滚动视图。
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Base application theme. -->
<style name="MainTheme" parent="@style/Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/primary</item>
    <item name="colorPrimaryDark">@color/primary_dark</item>
    <item name="colorAccent">@color/accent</item>
</style>

<style name="MyAppCompatDialogTheme" parent="MainTheme">
    <item name="android:windowIsFloating">false</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowSoftInputMode">stateAlwaysHidden</item>
    <item name="android:windowActionModeOverlay">true</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowFullscreen">false</item>
</style>

</resources>