How to reduce spinner size like this, reduce it's width & move it's alignment to right. Please refer below screenshots
What I want is below
What I get...
How to reduce spinner size like this, reduce it's width & move it's alignment to right. Please refer below screenshots
What I want is below
What I get...
Set Width of spinner
Display display = getWindowManager().getDefaultDisplay();
DisplayMetrics outMetrics = new DisplayMetrics(); display.getMetrics(outMetrics);
int width = outMetrics.widthPixels / 2;
popupWindow.setWidth(width);