From 6f32e71d296bd0f78a33583baadacd285bbf5a48 Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Tue, 31 Mar 2015 23:17:08 +0200 Subject: [PATCH] Translucent Statusbar Fixes; Sticked About to bottom --- .../morseconverter/MainActivity.java | 4 +- app/src/main/res/values-v19/styles.xml | 85 +++++++++++++++++++ app/src/main/res/values/colors.xml | 1 + 3 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/values-v19/styles.xml diff --git a/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java b/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java index 7cc9f99..69185a0 100644 --- a/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java +++ b/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java @@ -56,12 +56,12 @@ public class MainActivity extends MaterialNavigationDrawer { this.addSection(normalMorse); this.addDivisor(); this.addSection(writtenMorseList); - this.addDivisor(); - this.addSection(about); + this.addBottomSection(about); //set drawer image this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics)); allowArrowAnimation(); //Drawer Arrow rotations this.disableLearningPattern(); //Doesn't open the drawer always when the app starts + setBackPattern(MaterialNavigationDrawer.BACKPATTERN_BACK_TO_FIRST); } public void normalMorseEncode(View view){ diff --git a/app/src/main/res/values-v19/styles.xml b/app/src/main/res/values-v19/styles.xml new file mode 100644 index 0000000..5bc185f --- /dev/null +++ b/app/src/main/res/values-v19/styles.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 885b549..36cb7c0 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -23,5 +23,6 @@ #ffffff #2196F3 + #2196F3 \ No newline at end of file