Add an overlay on top of the reader to simulate a lower brightness. Closes #362

This commit is contained in:
len
2016-07-07 23:18:22 +02:00
parent a32e0e4ec5
commit f15df40a54
7 changed files with 52 additions and 20 deletions

View File

@@ -99,4 +99,10 @@
</FrameLayout>
<View
android:id="@+id/brightness_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>
</FrameLayout>

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
@@ -188,10 +189,15 @@
android:layout_height="wrap_content"
android:text="@string/pref_custom_brightness"/>
<SeekBar
<org.adw.library.widgets.discreteseekbar.DiscreteSeekBar
android:id="@+id/brightness_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/TextAppearance.Regular.Body1.Light"/>
app:dsb_min="-50"
app:dsb_max="100"
app:dsb_indicatorFormatter="%d%%"
app:dsb_indicatorTextAppearance="@style/TextAppearance.Regular"
app:dsb_indicatorColor="?colorAccent"
app:dsb_progressColor="?colorAccent" />
</LinearLayout>