为什么当我对 ListView 使用 SimpleCursorAdapter 时,我在 ListView 中有这样的项目高度 -
(我的代码基于此)
但是当使用数组时 Listview 项目的高度很大
(我基于此学习listview )
项目列表视图的行布局是
<?xml version="1.0" encoding="utf-8"?>
<TextView android:id="@+id/text1"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
所以我的问题是为什么在使用 ArrayAdapter 和 SimpleCursorAdapter 时行高会有所不同?