fixed spinner i think?

This commit is contained in:
IvanaE 2018-11-14 20:38:39 -05:00
parent 6f88a7bc71
commit b7cc459862
2 changed files with 2 additions and 4 deletions

Binary file not shown.

View file

@ -80,12 +80,10 @@ public class ServiceProviderServicesList extends AppCompatActivity implements De
String[] current = (String[])iter.next(); String[] current = (String[])iter.next();
services[i] = current[0]; services[i] = current[0];
} }
ArrayAdapter<String> servicesadapter = new ArrayAdapter<String> spinner.setItems(services);
(this, android.R.layout.simple_spinner_item, services);
servicesadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(servicesadapter);
spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener<String>() { spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener<String>() {