Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/229.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 ScrollView没有';无法在横向模式下正常工作_Android_Xml_Android Scrollview - Fatal编程技术网

Android ScrollView没有';无法在横向模式下正常工作

Android ScrollView没有';无法在横向模式下正常工作,android,xml,android-scrollview,Android,Xml,Android Scrollview,我的xml代码-->> 当应用程序处于纵向模式时,scrollView可以正常工作,但当应用程序处于横向模式时,scrollView可以工作,但复位按钮不会像纵向模式一样保持在底部位置。我怎样才能解决这个问题? 此外,RelativeLayout的属性layout_height=“match_parent”会显示一条警告,指出它应该是包装内容。帮我解决这个问题??我是新手。ScrollView与RelativeLayout不兼容,请使用 <Scrollview> <

我的xml代码-->>


当应用程序处于纵向模式时,scrollView可以正常工作,但当应用程序处于横向模式时,scrollView可以工作,但复位按钮不会像纵向模式一样保持在底部位置。我怎样才能解决这个问题?
此外,RelativeLayout的属性layout_height=“match_parent”会显示一条警告,指出它应该是包装内容。帮我解决这个问题??我是新手。

ScrollView
RelativeLayout
不兼容,请使用

<Scrollview> 
    <LinearLayout>
        <RelativeLayout>
        **everything else**
        </RelativeLayout>
        <Button .. />
    </LinearLayout>
</Scrollview>

**其他一切**

在横向模式下,重置按钮的位置与纵向模式下的位置不同。
<Scrollview> 
    <LinearLayout>
        <RelativeLayout>
        **everything else**
        </RelativeLayout>
        <Button .. />
    </LinearLayout>
</Scrollview>