Show preview of theme in settings

This commit is contained in:
Moez Bhatti
2018-04-09 16:52:12 -04:00
parent a8b73b71e6
commit 0448348d90
5 changed files with 28 additions and 1 deletions
@@ -77,7 +77,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_color_lens_black_24dp"
app:title="@string/settings_theme_title" />
app:title="@string/settings_theme_title"
app:widget="@layout/settings_theme_widget" />
<common.widget.PreferenceView
android:id="@+id/night"
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:paddingStart="8dp"
android:paddingEnd="8dp">
<View
android:id="@+id/themePreview"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:background="@drawable/circle"
tools:backgroundTint="@color/tools_theme" />
</FrameLayout>