Android 滚动图像按钮矩阵的水平方向

Android 滚动图像按钮矩阵的水平方向,android,scroll,Android,Scroll,我有30个图像按钮,将被安排10列和3行,但我不能有一个滚动视图安排。请帮帮我。使用GridLayout <?xml version="1.0" encoding="utf-8"?> <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_paren

我有30个图像按钮,将被安排10列和3行,但我不能有一个滚动视图安排。请帮帮我。

使用
GridLayout

<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:app="http://schemas.android.com/apk/res/com.astuetz.viewpager.extensions.example">
<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >



    <android.support.v7.widget.GridLayout
        android:layout_width="match_parent"
        android:layout_height="900dp" >

       <!-- your buttons -->

    </android.support.v7.widget.GridLayout>

</LinearLayout>

</HorizontalScrollView>


包括更多细节,否则没有人能帮助您!!使用支持库v7