How open new activity clicking an item in listview?

前端 未结 10 2094
我在风中等你
我在风中等你 2020-11-30 10:17

I can\'t start a new activity clicking over an item in my listview. I want that onItemClick can open the ApkInfoActivity.. Actually when i click no

10条回答
  •  日久生厌
    2020-11-30 11:03

    Try changing the visibility from protected to public for your method header.

    Edit

    Now that I look at it, your method header is actually wrong. It should be the following:

    public abstract void onItemClick (AdapterView parent, View view, int position, long id)
    

    The variables must be in the same order as they are in the Interface they implement.

提交回复
热议问题