listview item background color change

后端 未结 5 701
甜味超标
甜味超标 2020-12-16 08:43

I am working on an android application. I have created a listview by using

setListAdapter(new ArrayAdapter(this,android.R.layout.simple_list_i         


        
5条回答
  •  渐次进展
    2020-12-16 09:22

    I this This happening because you have put text color as black and your setting the background color also black that's why you can't see the difference. for setting the background color you can use the following line.

    view.setBackgroundColor(Color.YELLOW);

    use different color then text color.

提交回复
热议问题