set background but not display selector in section listview
<p>This is the rectangle file which is put in drawable folder</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item&gt;
        &lt;shape android:shape="rectangle"&gt;


            &lt;corners android:radius="0dip" /&gt;
            &lt;solid android:color="@color/white" /&gt;
            &lt;stroke android:width="1dip" android:color="@color/grey" /&gt;
        &lt;/shape&gt;

    &lt;/item&gt;
    &lt;/layer-list&gt;
</code></pre>

<p>I created a section listview now i want to set rounded border in each section..but this is not working. when i set rectangle border background with white color then selected effect not  display.
how i display selected effect and rounded border.</p>

<p>public class EntryAdapter extends ArrayAdapter {</p>

<pre><code>private Context context;
private ArrayList&lt;Item&gt; items;
private LayoutInflater vi;

public EntryAdapter(Context context,ArrayList&lt;Item&gt; items) {
    super(context,0, items);
    this.context = context;
    this.items = items;
    vi = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}


@Override
public View getView(int position, View convertView, ViewGroup parent) {
    View v = convertView;

    final Item i = items.get(position);
    if (i != null) {
        if(i.isSection()){
            SectionItem si = (SectionItem)i;
            v = vi.inflate(R.layout.list_item_section, null);

            v.setOnClickListener(null);
            v.setOnLongClickListener(null);
            v.setLongClickable(false);

            final TextView sectionView = (TextView) v.findViewById(R.id.list_item_section_text);
            sectionView.setText(si.getTitle());
        }else{
            EntryItem ei = (EntryItem)i;
            v = vi.inflate(R.layout.list_item_entry, null);
            final TextView title = (TextView)v.findViewById(R.id.list_item_entry_title);
            final TextView subtitle = (TextView)v.findViewById(R.id.list_item_entry_summary);

            if (title != null) 
                title.setText(ei.title);
            if(subtitle != null)
                subtitle.setText(ei.subtitle);
        }
    }
    return v;
}
</code></pre>

<p>}</p>
