Вот ваша архитектура для ваших нужд:
- Получить список установленных приложений.
- Реализация адаптера пользовательского списка.
Вы можете обратитьсяна этот урок тоже.
Ваш xml для адаптера пользовательского списка будет выглядеть так:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width = "fill_parent"
android:layout_height = "wrap_content"
android:padding = "10dp" >
<ImageView
android:id = "@+id/image_icon"
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:layout_alignParentLeft = "true" />
<TextView
android:id = "@+id/txt_name"
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:textSize = "15dp"
android:textColor = "@color/white"
android:layout_toRightOf = "@+id/image_icon"
android:layout_marginLeft = "8dp"
android:maxLength = "20"
android:ellipsize = "marquee" />
<CheckBox
android:id = "@+id/item_check"
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:layout_alignParentRight = "true"
android:button = "@drawable/btn_checkbox_selector"
android:layout_marginRight = "10dp"
android:clickable = "true" />
</RelativeLayout>