I'm new in android and I'm trying to use alertdialog but it always covers the actionbar.
How can I do something like dropdown menu as shown in the picture ?
I'm new in android and I'm trying to use alertdialog but it always covers the actionbar.
How can I do something like dropdown menu as shown in the picture ?
try this
WindowManager.LayoutParams wmlp = dialog.getWindow().getAttributes();
wmlp.gravity = Gravity.TOP | Gravity.LEFT;
wmlp.x = 100; //x position
wmlp.y = 100; //y position
dialog.show();