setOnItemClickListener not getting called

前端 未结 3 957
盖世英雄少女心
盖世英雄少女心 2020-12-07 05:54

I have this in the onCreate method as follows:

    ListView lv = (ListView)findViewById(android.R.id.list);
   adapter = new ModuleAdapter(this);
   lv.setAd         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 06:42

    Do you set FocusableInTouchMode to be true in your layout? If so then onItemClick will not be called.

提交回复
热议问题