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"/>