From 51cf23d5b452c6bca1c39cc26738ac9be7426444 Mon Sep 17 00:00:00 2001 From: Moravec-Jan <36644697+Moravec-Jan@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:30:59 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b21abd4..0f0304c 100644 --- a/README.md +++ b/README.md @@ -63,12 +63,12 @@ In the xml : ``` You can set a hint and a floating label text. If no floating label text is provided, the hint will be set instead. - + MaterialSpinner.createDefaultSpinner(EnergyVisualizationApp.getInstance(), items); Java side, you use it like a regular spinner, setting an adapter to it. ```java String[] ITEMS = {"Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6"}; - ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, ITEMS); - adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + + ArrayAdapter adapter = MaterialSpinner.createDefaultSpinner(this, ITEMS); spinner = (MaterialSpinner) findViewById(R.id.spinner); spinner.setAdapter(adapter); ``` From 41cfa0aea9c3b2c76b3b97937c8f46f2399339ef Mon Sep 17 00:00:00 2001 From: Moravec-Jan <36644697+Moravec-Jan@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:35:03 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0f0304c..297c02d 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ Spinner with Material Design Slightly modified version of original [ganfra/MaterialSpinner](https://github.com/ganfra/MaterialSpinner) + +## Screenshot +![spinner](https://user-images.githubusercontent.com/36644697/48788083-5d806c80-ecea-11e8-96a0-f84be9ff14a3.PNG) + ## Gradle Dependency Step 1. Add the JitPack repository to your build file From 6d36a4fd819310eac9deb0c35e4e1328e0d67fa2 Mon Sep 17 00:00:00 2001 From: Moravec-Jan <36644697+Moravec-Jan@users.noreply.github.com> Date: Tue, 20 Nov 2018 17:40:02 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 297c02d..b31189f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Spinner with Material Design -Slightly modified version of original [ganfra/MaterialSpinner](https://github.com/ganfra/MaterialSpinner) +Slightly modified version of original [ganfra/MaterialSpinner](https://github.com/ganfra/MaterialSpinner). Library also provides own array adapter, which does not have annoying left padding. ## Screenshot