aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-02-02 15:16:15 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-02-02 15:16:15 +0000
commit802a70e9c9d63c799e86e1d889801d74a517212f (patch)
treefae88e1ec46f0aaecde9a324f9bd61ecd43a08a1 /app/src/main/res/layout
parent7ae7827d491473b326dcf3f3c297803816f798c0 (diff)
downloadinfinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.tar
infinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.tar.gz
infinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.tar.bz2
infinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.tar.lz
infinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.tar.xz
infinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.tar.zst
infinity-for-reddit-802a70e9c9d63c799e86e1d889801d74a517212f.zip
Add a dark theme toggle in the navigation drawer.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_main.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index ca33eadf..798dd9c3 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -200,6 +200,19 @@
android:background="@color/dividerColor" />
<TextView
+ android:id="@+id/night_mode_toggle_text_view_main_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:padding="16dp"
+ android:drawablePadding="32dp"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:focusable="true" />
+
+ <TextView
android:id="@+id/settings_text_view_main_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"