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

后端 未结 4 362
遥遥无期
遥遥无期 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:13

    I think this might be happening because you are using getBaseContext() at Toast.makeText . Try using getApplictaionContext() or EditPhotosActivity.this

提交回复
热议问题