include simple_list_item_1 in xml layout that gives feedback onClick

AdamsCoinc

New Member
I have to rebuild the look of a clickable list item.Therefore I have this xml code:\[code\]<?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:orientation="vertical" ><TextView android:id="@+id/tv_changeRoomLabel" style="?android:attr/listSeparatorTextViewStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/label_optionChangeName" /><include android:id="@+id/tv_btn_changeRoom" layout="@android:layout/simple_list_item_1" android:background="@android:drawable/btn_default" android:clickable="true" /></LinearLayout>\[/code\]I have tried a lot of different things to add in the tag, but its always the same. When I click the list item, it doesn't show feedback. Meaning the background color of the simple_list_item does not change as it does when using a normal ListView. Nevertheless at least the onClick() is performed.Any ideas?P.S I've come across the simple_layout_activated_1 but it's API 11 so I cannot use it. I have mintarget 7.
 
Back
Top