I want to create a popup window for my app that will be the same size as my buttons which are 300dp wide. However the constructor for the popup window takes float values.
mPopupWindow = new PopupWindow(
PopUpView,
300,
500
);
Is there a way to create a popup window that will stick to dp dimensions