ListView实现图文列表:
使用SimpleAdapter建立自定义的列表项:
simpleAdapter 可以用来实现任何我们自己定义的布局。可以使用其实现任何我们自己定义的布局,但是其不能够对内部进行操作,因为 List<Map<String, Object>> list
因为其是通过List ,Map 进项操作的,其内部是封装好的我们只能用其完成数据的填放。
实现图文共现需完成如下步骤:
1:首先我们必须定义一个ListView 让其显示我们需要加载的信息,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/listView4"
android:layout_width="match_parent"