01/10/2018, 22:34

[Android Fix] PopupMenu You must supply a layout_height attribute

[Android Fix] PopupMenu You must supply a layout_height attribute Tháng Ba 6, 2016 nguyenvanquan7826 LT Android Leave a response Hi, I have this issue when I create PopupMenu like: PopupMenu popupMenu = new PopupMenu(getApplica ...

[Android Fix] PopupMenu You must supply a layout_height attribute

Hi, I have this issue when I create PopupMenu like:

PopupMenu popupMenu = new PopupMenu(getApplicationContext(), v);

And I fix this issue by replace getApplicationContext() to this or activity.

PopupMenu popupMenu = new PopupMenu(this, v);
0