ListView item background via custom selector

前端 未结 10 1417
深忆病人
深忆病人 2020-11-22 08:19

Is it possible to apply a custom background to each Listview item via the list selector?

The default selector specifies @android:color/transparent for t

10条回答
  •  情歌与酒
    2020-11-22 09:10

    You can write a theme:

    
        android:name=".List10" android:theme="@style/Theme"
    

    theme.xml

    
    

    styles.xml