Question: There is a ListView in my App and the ListView has a selector. I want to make the first item of this ListView to be selected **as default** at the very **startup of App**, How? Can anyone give some tips? THX a lot.

Answer: 
This work for me. I hope this will help you. :)

```
 @Override
    public View getView(int position, View convertView, ViewGroup parent) {

    // do someting...
    if(position == 0){
        mListView.performItemClick(convertView, 0, 0);
    }

 }

```

now i found another good way to implement this.

* Firstly,you should set ListView **android:choiceMode=singleChoice**
* Secondly,just go ahead as follow, 

```
    int defaultPositon = 0;
    int justIgnoreId = 0;
    mListView.setItemChecked(defaultPositon, true);
    mListView.performItemClick(mListView.getSelectedView(), defaultPositon, justIgnoreId);

```
You can fix it like this.

```
//set list adapter, then
lv.setItemChecked(1, true);//position 1
lv.setSelection(1);//position 1

```

Update XML layout with single choice.

```
<ListView
    android:id="@+id/lv"
    android:layout_width="match_parent"
    android:layout_height="match_parent"  
    android:background="@drawable/list_item_background"
    android:cacheColorHint="#FFFFFF"
    android:choiceMode="singleChoice"
    android:dividerHeight="1dip" >
</ListView>

```

and set listview background XML as list\_item\_background.xml,

```
<?xml version="1.0" encoding="utf-8"?>
     <selector xmlns:android="http://schemas.android.com/apk/res/android">
     <item android:drawable="@drawable/bg_list_default"   android:state_activated="false"/>
     <item android:drawable="@drawable/bg_list_pressed" android:state_pressed="true"/>
     <item android:drawable="@drawable/bg_list_pressed" android:state_activated="true"/>

```