PreferenceScreen, . Activity, , ListView s. , visibility , visible gone , gone , - .
ArrayAdapter ( ArrayAdapter ListView s, ). , LinearLayout ImageView TextView , , :
<?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:background="#000000"
android:orientation="horizontal" >
<ImageView
android:id="@+id/layoutImage"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="2"
android:background="@drawable/..."/>
<TextView
android:id="@+id/layoutText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="8"
android:layout_gravity="left"
android:numLines="1"
android:textSize="18sp" />
</LinearLayout>
ArrayAdapter - , R.id.your_new_layout, .
, onClickListener() getView() ( ArrayAdapter), ListView notifyDataSetChanged(), , , .
. ListView " ", , . , .sort() ArrayAdapter, , , 2 , ( ):
onDragEvent. this, ListView . , , , , List Adapter, .
. , , , , this, this .
, Activity, , , setVisibility() View.VISIBLE View.GONE ListView, , .