android.R.color.transparent not fully transparent

前端 未结 5 1234
忘掉有多难
忘掉有多难 2020-12-17 20:40

In my application, I apply the transparent background to my ListView\'s CustomListItem at runtime. For that I use, convertView.setBackgroundColor(android.

5条回答
  •  时光说笑
    2020-12-17 21:18

    Set this attribute to your listview in xml file

    android:background="@android:color/transparent"
    

    and also apply the transparent background to your ListView's CustomListItem at runtime. For that you have use,

    convertView.setBackgroundColor(Color.TRANSPARENT);
    

    Thanks

提交回复
热议问题