diff options
| author | Benjamin Linskey | 2025-09-29 00:52:12 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2025-09-29 00:52:12 -0400 |
| commit | a4667968915b3bbc57e634189bada112dc1d5aac (patch) | |
| tree | e3b8a96519110398eab146b652d3a8233123f478 | |
| parent | 7671581ceb1bbb069d184b9d17192c6fd17c2c5c (diff) | |
| download | greek-reference-a4667968915b3bbc57e634189bada112dc1d5aac.tar.gz | |
Set navigation bar color
4 files changed, 14 insertions, 2 deletions
diff --git a/GreekReference/src/main/java/com/benlinskey/greekreference/views/MainActivity.java b/GreekReference/src/main/java/com/benlinskey/greekreference/views/MainActivity.java index b593ed8..0b9e30c 100644 --- a/GreekReference/src/main/java/com/benlinskey/greekreference/views/MainActivity.java +++ b/GreekReference/src/main/java/com/benlinskey/greekreference/views/MainActivity.java @@ -16,6 +16,7 @@ package com.benlinskey.greekreference.views; +import android.graphics.Color; import android.app.DialogFragment; import android.app.Fragment; import android.app.FragmentManager; @@ -105,6 +106,8 @@ public class MainActivity mLexiconPresenter = new LexiconPresenter(this, this); mSyntaxPresenter = new SyntaxPresenter(this, this); + getWindow().setNavigationBarColor(Color.parseColor("#000000")); + // Set the toolbar to act as the action bar. Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_actionbar); setSupportActionBar(toolbar); diff --git a/GreekReference/src/main/java/com/benlinskey/greekreference/views/PerseusToolActivity.java b/GreekReference/src/main/java/com/benlinskey/greekreference/views/PerseusToolActivity.java index 96c9310..c63659d 100644 --- a/GreekReference/src/main/java/com/benlinskey/greekreference/views/PerseusToolActivity.java +++ b/GreekReference/src/main/java/com/benlinskey/greekreference/views/PerseusToolActivity.java @@ -22,6 +22,7 @@ import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.content.Intent; +import android.graphics.Color; import android.net.Uri; import android.os.Build; import android.os.Bundle; @@ -75,7 +76,9 @@ public class PerseusToolActivity extends AbstractContainerActivity { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().setStatusBarColor(getResources().getColor(R.color.blue_accent_dark)); } - + + getWindow().setNavigationBarColor(Color.parseColor("#000000")); + // Set the toolbar to act as the action bar. Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_actionbar); setSupportActionBar(toolbar); diff --git a/GreekReference/src/main/java/com/benlinskey/greekreference/views/SettingsActivity.java b/GreekReference/src/main/java/com/benlinskey/greekreference/views/SettingsActivity.java index daca5e2..7e2bd6d 100644 --- a/GreekReference/src/main/java/com/benlinskey/greekreference/views/SettingsActivity.java +++ b/GreekReference/src/main/java/com/benlinskey/greekreference/views/SettingsActivity.java @@ -19,6 +19,7 @@ package com.benlinskey.greekreference.views; import android.content.Context; import android.content.pm.PackageManager; import android.content.res.Configuration; +import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.preference.CheckBoxPreference; @@ -55,6 +56,8 @@ public class SettingsActivity extends AbstractContainerActivity { getWindow().setStatusBarColor(getResources().getColor(R.color.blue_accent_dark)); } + getWindow().setNavigationBarColor(Color.parseColor("#000000")); + // Set the toolbar to act as the action bar. Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_actionbar); setSupportActionBar(toolbar); diff --git a/GreekReference/src/main/java/com/benlinskey/greekreference/views/detail/AbstractDetailActivity.java b/GreekReference/src/main/java/com/benlinskey/greekreference/views/detail/AbstractDetailActivity.java index 908f55b..514819b 100644 --- a/GreekReference/src/main/java/com/benlinskey/greekreference/views/detail/AbstractDetailActivity.java +++ b/GreekReference/src/main/java/com/benlinskey/greekreference/views/detail/AbstractDetailActivity.java @@ -18,6 +18,7 @@ package com.benlinskey.greekreference.views.detail; import android.app.FragmentManager; import android.content.Intent; +import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; @@ -57,7 +58,9 @@ public abstract class AbstractDetailActivity extends AbstractContainerActivity { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().setStatusBarColor(getResources().getColor(R.color.blue_accent_dark)); } - + + getWindow().setNavigationBarColor(Color.parseColor("#000000")); + // Set the toolbar to act as the action bar. Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_actionbar); setSupportActionBar(toolbar); |