0
我是android的新的,当我尝试运行我的代码,我只是让我的智能手机和仿真器之间输精管结果GridView控件行为不同的手机和模拟器
在我的手机的Android版本是棒棒糖5 的Android版本模拟器是棒棒糖4
这张照片从手机
这张照片从模拟器
,这是我的代码
<GridLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:columnCount="2"
android:rowCount="2"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="0"
android:layout_row="0"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_gravity="fill"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_row="0"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_gravity="fill"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="0"
android:layout_row="1"
android:layout_columnWeight="0"
android:layout_rowWeight="1"
android:layout_columnSpan="2"
android:layout_gravity="fill"
/>
</GridLayout>