From 35c1355de2ffaa31e82deec01dd404e26cf09522 Mon Sep 17 00:00:00 2001 From: Daniele Date: Wed, 13 Oct 2021 10:33:27 +0200 Subject: [PATCH] Minor fixes --- .../java/it/danieleverducci/ojo/ui/SurveillanceFragment.java | 2 +- app/src/main/res/layout/fragment_add_stream.xml | 5 ++++- app/src/main/res/layout/fragment_surveillance.xml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java b/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java index fc0ee80..a2c5d0a 100644 --- a/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java +++ b/app/src/main/java/it/danieleverducci/ojo/ui/SurveillanceFragment.java @@ -87,7 +87,7 @@ public class SurveillanceFragment extends Fragment implements MediaPlayer.EventL } else { // Cameras are less than the maximum number of cells in grid: fill remaining cells with empty views View ev = new View(getContext()); - ev.setBackgroundColor(Color.BLUE); + ev.setBackgroundColor(getResources().getColor(R.color.purple_500)); LinearLayout.LayoutParams evParams = new LinearLayout.LayoutParams( 0, LinearLayout.LayoutParams.MATCH_PARENT, diff --git a/app/src/main/res/layout/fragment_add_stream.xml b/app/src/main/res/layout/fragment_add_stream.xml index 68b5ce4..8b2525a 100644 --- a/app/src/main/res/layout/fragment_add_stream.xml +++ b/app/src/main/res/layout/fragment_add_stream.xml @@ -12,7 +12,10 @@ android:id="@+id/stream_url" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/add_stream_placeholder_url"/> + android:hint="@string/add_stream_placeholder_url" + android:lines="1" + android:maxLines="1" + android:inputType="textUri"/>