Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.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_Button_Layout_Sliding - Fatal编程技术网

Android 如何使页面上下滑动?

Android 如何使页面上下滑动?,android,button,layout,sliding,Android,Button,Layout,Sliding,我想在版面上设置47个按钮,但我不知道如何在版面上为所有按钮留出空间,并使版面上下滑动。。我知道,有很多关于这个的话题,但我都试过了,我没有任何帮助。。所以,如果有人能解释并写出一个包含按钮和滑动过程中所需的所有文件的布局,请回答。请,非常感谢,我会很高兴的。谢谢 我知道,这方面有很多主题,但我都试过了 他们,我什么都帮不了我 你读过scrollview吗 试试这个,它会帮你的 <ScrollView xmlns:android="http://schemas.android.com/ap

我想在版面上设置47个按钮,但我不知道如何在版面上为所有按钮留出空间,并使版面上下滑动。。我知道,有很多关于这个的话题,但我都试过了,我没有任何帮助。。所以,如果有人能解释并写出一个包含按钮和滑动过程中所需的所有文件的布局,请回答。请,非常感谢,我会很高兴的。谢谢

我知道,这方面有很多主题,但我都试过了 他们,我什么都帮不了我

你读过scrollview吗


试试这个,它会帮你的

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <LinearLayout 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        >
        <Button 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text=""
            />
        .
        .
        .
    </LinearLayout>  
</ScrollView>

.
.
.

您确定要这么多按钮吗?它可能会违反许多UI/UX标准。您到底尝试了什么?