From 96a3cbc40a5cf52896debdfe0619e793b1e6d909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 22 Oct 2018 01:32:21 +0200 Subject: [PATCH] colors --- .../view/SettingsFragment.java | 5 +-- .../src/main/res/layout/fragment_settings.xml | 34 ++++++++++++++++--- android/app/src/main/res/values/colors.xml | 1 + 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java b/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java index 8cf6cd3..e8ba65b 100644 --- a/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java +++ b/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/view/SettingsFragment.java @@ -1,7 +1,6 @@ package com.blackforestbytes.simplecloudnotifier.view; import android.media.AudioManager; -import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; @@ -101,7 +100,9 @@ public class SettingsFragment extends Fragment prefAppEnabled.setChecked(s.Enabled); prefAppEnabled.setOnCheckedChangeListener((a,b) -> onUpdate()); - prefLocalCacheSize.setAdapter(new ArrayAdapter<>(v.getContext(), android.R.layout.simple_spinner_item, SCNSettings.CHOOSABLE_CACHE_SIZES)); + ArrayAdapter plcsa = new ArrayAdapter<>(v.getContext(), android.R.layout.simple_spinner_item, SCNSettings.CHOOSABLE_CACHE_SIZES); + plcsa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + prefLocalCacheSize.setAdapter(plcsa); prefLocalCacheSize.setSelection(getCacheSizeIndex(s.LocalCacheSize)); prefLocalCacheSize.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { diff --git a/android/app/src/main/res/layout/fragment_settings.xml b/android/app/src/main/res/layout/fragment_settings.xml index 8175d1c..a876dea 100644 --- a/android/app/src/main/res/layout/fragment_settings.xml +++ b/android/app/src/main/res/layout/fragment_settings.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content"> + + + + +