i tried a lot to change the dropdown item height of spinner.. but i couldn\'t get a good solution.. plz help me guys..
here is a code loginactivityview.xml
You can try using dps.
@Override
public View getDropDownView(int position, View convertView, ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
TextView textview = (TextView)inflater.inflate(android.R.layout.simple_spinner_item, null);
textview.setText(alOpcion.get(position).getOpcionName());
DisplayMetrics metrics = parent.getResources().getDisplayMetrics();
float dp = 40f;
float fpixels = metrics.density * dp;
int pixels = (int) (fpixels + 0.5f);
textview.setHeight(pixels);
return textview;
}