Android: make list item with background clickable
问题 I have a list where I have defined my own list view items with a custom layout. This layout has a background with a custom drawable. My custom layout for the ListView item: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/item" android:clickable="true" android:focusable="true" android:focusableInTouchMode="true" > ... </RelativeLayout> My custom drawable item.xml :