Why do items disappear when I scroll the listView?

前端 未结 2 1491
南笙
南笙 2020-12-05 10:55

My application use a ListView which display different items in the cell. it must have photo and name, but it happens to have description and icons.

The

2条回答
  •  醉梦人生
    2020-12-05 11:25

    I had the same problem.

            if (!imageuri.isEmpty()) {
                rl.setVisibility(View.VISIBLE);
                SmartImageView imageView = (SmartImageView) view.findViewById(R.id.detailimageView1);
                imageView.setImageUrl(imageuri);
            } else {            
                rl.setVisibility(View.GONE);
            }
    

    Thanks for the solution!

提交回复
热议问题