Listview itemclick not work

后端 未结 6 1497
深忆病人
深忆病人 2020-11-27 20:33
  1. I have a ListView in my ListView show ImageButton.

  2. I set focusalble \"false\" and focusableInTouchMode \"false\" to ImageButton.

  3. I s

6条回答
  •  失恋的感觉
    2020-11-27 20:44

    May be you have written onclick listener for the image button in adapter class

    Example :

    imageButton.setOnClickListener(new OnClickListener() 
            {
                @Override
                public void onClick(View v) {
    
    
                }
            });
    

    If you set onclick listener for the listItem .It will automatically consume the action input so the list item may not be clicked.

提交回复
热议问题