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