Popup Menu in custom ListView

前端 未结 7 1478
礼貌的吻别
礼貌的吻别 2020-12-05 11:44

What I want to achieve:

I have a custom ListView adapter. To each Listitem I want to add a popup menu, pretty similar to the ListView in the current Google Play appl

7条回答
  •  情话喂你
    2020-12-05 12:27

    Rick's code of lines works perfect as long as you import the following:

    import android.widget.PopupMenu;
    

    Not the one below:

    import android.support.v7.widget.PopupMenu;
    

提交回复
热议问题