want to show image OnItemClick on listview item in dialog box

432 views Asked by At

I want to show a image on click item of listview which is showing in dialog. But as I click on item is Image is showing in multiple items Can anyone suggest me how to do this.

  listQuantity.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
               view.findViewById(R.id.img_check).setVisibility(View.VISIBLE);
        }
    });
1

There are 1 answers

0
Woz On

You have to use to optimize your listview holder, you could upload the code you're using to help better

http://java.dzone.com/articles/android-listview-optimizations

http://android.amberfog.com/?p=296