Мне жаль, если это похоже на один вопрос в миллион раз... но поиск в Google для этого не дает никаких результатов, просто куча устаревших руководств с использованием managedQuery
и других устаревших решений...
<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
наконец для contact_list_layout xml: