为什么当我在ListView中使用SimpleCursorAdapter时,我在ListView中的项目高度是这样的--
(我的代码基于this)
,但在使用数组时,列表视图项具有较大的高度
(我学习了基于this的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时,行高会有差异?
https://stackoverflow.com/questions/4243894
复制相似问题