By default the spinner width is set to fit the largest item in the dropdown but I want it to be the same width as the selected item.
ViewGroup.LayoutParams spinnerLayoutParams = spinner.getLayoutParams(); spinnerLayoutParams.width -= 1; spinner.setLayoutParams(spinnerLayoutParams);
Do this is on item selected