Minor fixes

This commit is contained in:
Daniele 2021-10-13 10:33:27 +02:00
parent 162ace2858
commit 35c1355de2
3 changed files with 7 additions and 3 deletions

View File

@ -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,

View File

@ -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"/>
<Button
android:id="@+id/save"
android:layout_width="match_parent"

View File

@ -6,6 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.AddStreamFragment">
tools:context=".ui.AddStreamFragment"
android:background="@color/purple_500">
</LinearLayout>