From 1634fcfb16d6ebbcca11f7e2a4db48ab950f62a8 Mon Sep 17 00:00:00 2001 From: IvanaE Date: Wed, 14 Nov 2018 20:38:39 -0500 Subject: [PATCH] fixed spinner i think? --- .../.idea/caches/build_file_checksums.ser | Bin 0 -> 537 bytes .../ServiceProviderServicesList.java | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 OlympusServices/.idea/caches/build_file_checksums.ser diff --git a/OlympusServices/.idea/caches/build_file_checksums.ser b/OlympusServices/.idea/caches/build_file_checksums.ser new file mode 100644 index 0000000000000000000000000000000000000000..e0019173a9be8f370fcdc9262eb13ff2c66e39e9 GIT binary patch literal 537 zcmZ4UmVvdnh`~NNKUXg?FQq6yGexf?KR>5fFEb@IQ7^qHF(oHeub?PDD>b=9F91S2 zm1gFoxMk*~I%lLNXBU^|7Q2L-Ts|(GuF1r}Q#7BMhIJFWRF{)3Gp&_nlwZS}T(%=?ZjW zacW6PW?p(ROk*KK9RnLk?Yx@_`)uyB=jkTsNrgKdURc7wgJJ_*Vepplvy=ar|Cuyv zdsS~-m@d#cIr+(nIiR2|NG&SKOf4>jD^~nhq9o<;S$>wqzu*iL^>rl-8qQWRp~b01 z#W9{`iFt`JP=~}I;s?W!E3!Q|`x!Q|ylmi{@#cq9T?vCA9@U?FnOE&eSn9XQHqH3i IS%IVq01kD!oB#j- literal 0 HcmV?d00001 diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/ServiceProviderServicesList.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/ServiceProviderServicesList.java index 81a56e0..d8b57ac 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/ServiceProviderServicesList.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/ServiceProviderServicesList.java @@ -80,12 +80,10 @@ public class ServiceProviderServicesList extends AppCompatActivity implements De String[] current = (String[])iter.next(); services[i] = current[0]; } - ArrayAdapter servicesadapter = new ArrayAdapter - (this, android.R.layout.simple_spinner_item, services); + spinner.setItems(services); + - servicesadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); - spinner.setAdapter(servicesadapter); spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener() {