ScrollView高度问题

来源:5-3 首页实现_主菜单实现(难点)

RenuMou

2017-04-09 15:52:00

<ScrollView
    android:layout_marginTop="60dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <GridView
            android:id="@+id/gridview"
            android:columnWidth="90dp"
            android:numColumns="4"
            android:verticalSpacing="10dp"
            android:horizontalSpacing="10dp"
            android:stretchMode="columnWidth"
            android:gravity="center"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            </GridView>
    </RelativeLayout>

</ScrollView>

为什么是这样?应该会两行了,就一行

http://climg.mukewang.com/58e9e7f90001dbc207201280.jpg

写回答

1回答

好帮手慕雪

2017-04-09

你好,把ScrollView去掉就行了。祝:学习愉快


0
henuMou
h 去掉了,怎么滚动了?
h017-04-10
共1条回复

0 学习 · 7235 问题

查看课程