Spinner Wont Show Dropdown In Fragment
I have created a Fragment called PaletteFragment that includes a spinner. However, when I click on the spinner, the dropdown items do not appear. It is allowing me to click on the
Solution 1:
You doing everything ok, except your are not binding adapter with spinner. Use this to set Adapter for spinner.
stringName.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
View v = inflater.inflate(R.layout.fragment_palette,container,false);
spinner = v.findViewById(R.id.spinner);
spinner.setAdapter(stringName )
Post a Comment for "Spinner Wont Show Dropdown In Fragment"