RuntimeException: Binary XML file line #17: You must supply a layout_height attribute whie showing the popupmenu

后端 未结 4 342
遥遥无期
遥遥无期 2021-01-13 06:30
        public void showPopup(int group,int img_index,JSONArray json_ar,View v){

        PopupMenu pm=new PopupMenu(EditPhotosActivity.this,v);
        pm.getMenuIn         


        
4条回答
  •  野的像风
    2021-01-13 07:23

    I had the same issue when creating PopupMenu. I determined that PopupMenu was using:

    import android.support.v7.widget.PopupMenu;
    

    The fix was to edit it to:

    import android.widget.PopupMenu;
    

提交回复
热议问题