Androd ListView style
- by xger86x
Hi, i have a question about list views. I hope anyone knows the solution because i have been trying to solve this problem all the weekend.
Well, i have a custom list view in which every row have a custom .xml (item_row.xml) with a set color background for the row item.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="70dip"
android:orientation="vertical"
android:background="@drawable/list_bg">
The problem is when i try to make a selector for the list. I want two things:
When the item is focused, appears the typical orange rectangle over him.
When the item is pressed the same.
I have proved with a selector and a custom style but all i get is or the selector doesn't appear or the selector covering the item so i can't see it.
If anyone can give me the right code i will be very grateful.
Thanks