题目要求如图:
1、因为有两个列表项,所以要新建一个xml布局文件,我这里命名为“list_item_call_crime.xml”,其实就在原来基础上多加一个按钮
<?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="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:id="@+id/crime_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Crime Title"
android:textSize="30sp"
android:textColor="#000"/>
<TextView
android:id="@+