Skip to content

armgit / haven

Public Imported from GitHub
0

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

update camera sensitivty config UI

n8fr8985f14e8c495
diff --git a/src/main/res/layout/activity_camera_configure.xml b/src/main/res/layout/activity_camera_configure.xml
index 0108cda..04620be 100644
--- a/src/main/res/layout/activity_camera_configure.xml
+++ b/src/main/res/layout/activity_camera_configure.xml
@@ -27,21 +27,35 @@
android:layout_marginTop="60dp"
android:visibility="gone" />
-
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_horizontal|bottom"
+ android:orientation="vertical"
+ android:padding="10dp">
<TextView
android:layout_width="match_parent"
- android:layout_height="0dp"
+ android:layout_height="100dp"
android:gravity="center_horizontal|bottom"
- android:text="@string/tune_the_sound_detection"
+ android:text="@string/keep_watch"
android:textColor="@color/colorAccent"
android:textSize="20sp"
android:textStyle="bold" />
+ <TextView
+ android:layout_width="300dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center_horizontal|bottom"
+ android:text="@string/camera_sensitivity_tip"
+ android:textColor="@color/colorAccent"
+ android:textSize="14sp"
+ android:textStyle="bold" />
+
<LinearLayout
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center_horizontal|bottom"
+ android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="10dp">
@@ -64,5 +78,6 @@
/>
</LinearLayout>
+ </LinearLayout>
</FrameLayout>
</android.support.design.widget.CoordinatorLayout>
\ No newline at end of file
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index fff37b6..f5f0d0d 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -134,6 +134,8 @@
<string name="notification_time_summary">Only send notifications at configured interval</string>
<string name="notification_time_dialog">Enter time (minutes) to limit notifications. \'0\' to send every notification.</string>
<string name="minutes">minutes(s)</string>
+ <string name="keep_watch">Keep Watch!</string>
+ <string name="camera_sensitivity_tip">Select camera and use the slider to adjust motion detection sensitivity</string>
</resources>