Getting the Listview default clicked color, depending on the Device

后端 未结 1 783
离开以前
离开以前 2021-01-19 04:05

In my android application, I use a listview and some linear layout on wich the user can click.

Of course, I had to set the background of my LinearLayout to a xml fil

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 04:50

    Just found the answer:

    android:background="@android:drawable/list_selector_background"
    

    0 讨论(0)
提交回复
热议问题