【发布时间】:2014-08-18 05:08:08
【问题描述】:
gridview noofColumn="autofit"模式下如何在Gridview中获取列数
如何获取列的单行编号
<GridView
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:gravity="center"
android:numColumns="auto_fit"
android:stretchMode="columnWidth" />
【问题讨论】:
-
在网格视图“自动调整”模式下,将考虑在移动模式下 2 列,在横向模式下考虑 3 列。