Android Tutorial 49 - Transitioning to the ListActivity

preview_player
Показать описание
This is an excerpt from Learn by Doing - Android for Beginners on Udemy.

This video will show you how to,

1. Move to a ListActivity from an Activity
2. Use an empty view with your ListActivity

Things to Remember
------------------------------
1. If you use a ListView in your layout, consider using the ListActivity instead of the Activity.

2. Give your ListView an in-build Android id, which is @android:id/list.

3. You can also use an empty view, which could be any view with the built-in Android id @android:id/empty.

4. The ListActivity automatically manages the empty view for you based on the number of items in your ListAdapter.
Рекомендации по теме
join shbcf.ru