android.R.color.transparent not fully transparent

前端 未结 5 1261
忘掉有多难
忘掉有多难 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:25

    convertView.setBackgroundColor(Color.argb(0, 0, 0, 0));
    

    OR

    convertView.setBackgroundColor(Color.parseColor("#00000000"));
    

提交回复
热议问题