我正在使用从MySQL数据库填充的ListView,listview项的数量由数据库返回的行确定(记录更新时的更改)。
我认为这就像为listview定义水平方向一样简单,但事实并非如此:
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
</ListView>
答案 0 :(得分:2)