第一步 activity
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/xlistview_tv_classname"
android:textSize="20sp"
/>
<com.bawei.test.xlistview.view.XListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/xlistview_xls"
/>
</RelativeLayout>