Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
Add semi-transparent overlay to camera preview to improve text/icon readability
Christophe84ccc6609e7
diff --git a/src/main/res/layout/camera_fragment.xml b/src/main/res/layout/camera_fragment.xmlindex 826b00c..b914d0a 100644--- a/src/main/res/layout/camera_fragment.xml+++ b/src/main/res/layout/camera_fragment.xml@@ -1,20 +1,17 @@<?xml version="1.0" encoding="utf-8"?>-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"- android:layout_width="match_parent"- android:layout_height="match_parent">-- <FrameLayout android:id="@+id/preview"- android:layout_gravity="center_horizontal"- android:layout_width="1dp"- android:layout_height="1dp">- </FrameLayout>-- <ImageView- android:id="@+id/new_image"- android:layout_width="match_parent"- android:layout_height="match_parent"- />+ android:layout_width="match_parent"+ android:layout_height="match_parent"+ android:foreground="@color/translucentOverlay20">+ <FrameLayout+ android:id="@+id/preview"+ android:layout_width="1dp"+ android:layout_height="1dp"+ android:layout_gravity="center_horizontal" />+ <ImageView+ android:id="@+id/new_image"+ android:layout_width="match_parent"+ android:layout_height="match_parent" /></FrameLayout>diff --git a/src/main/res/values/colors.xml b/src/main/res/values/colors.xmlindex 405bcec..7f77777 100644--- a/src/main/res/values/colors.xml+++ b/src/main/res/values/colors.xml@@ -6,4 +6,7 @@<color name="colorAccent">#f5c229</color><color name="primary_text">#212121</color><color name="secondary_text">#757575</color>++ <!-- 20% black -->+ <color name="translucentOverlay20">#30000000</color></resources>