Wip add camera from list
This commit is contained in:
@ -22,6 +22,22 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/add_stream_name"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/stream_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:hint="@string/add_stream_placeholder_url"
|
||||
android:lines="1"
|
||||
android:maxLines="1"
|
||||
android:inputType="textUri"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:text="@string/add_stream"/>
|
||||
|
||||
<EditText
|
||||
|
@ -1,13 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/list"
|
||||
android:name="it.danieleverducci.ojo.ui.SettingsFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
app:layoutManager="LinearLayoutManager"
|
||||
tools:context=".ui.SettingsFragment"
|
||||
tools:listitem="@layout/fragment_settings_item" />
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/settingsToolbar"
|
||||
app:title="@string/app_name" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:name="it.danieleverducci.ojo.ui.SettingsFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
app:layoutManager="LinearLayoutManager"
|
||||
tools:context=".ui.SettingsFragment"
|
||||
tools:listitem="@layout/fragment_settings_item" />
|
||||
|
||||
</LinearLayout>
|
@ -6,7 +6,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.AddStreamFragment"
|
||||
tools:context=".ui.StreamUrlFragment"
|
||||
android:background="@color/purple_500">
|
||||
|
||||
</LinearLayout>
|
||||
|
8
app/src/main/res/menu/settings_menu.xml
Normal file
8
app/src/main/res/menu/settings_menu.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/menuitem_add_camera"
|
||||
android:icon="@drawable/ic_add_camera"
|
||||
android:title="@string/add_stream"
|
||||
app:showAsAction="always"/>
|
||||
</menu>
|
@ -17,7 +17,7 @@
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/CameraUrlFragment"
|
||||
android:name="it.danieleverducci.ojo.ui.AddStreamFragment"
|
||||
android:name="it.danieleverducci.ojo.ui.StreamUrlFragment"
|
||||
android:label="@string/second_fragment_label"
|
||||
tools:layout="@layout/fragment_add_stream">
|
||||
<action
|
||||
|
@ -5,15 +5,18 @@
|
||||
<string name="first_fragment_label">First Fragment</string>
|
||||
<string name="second_fragment_label">Second Fragment</string>
|
||||
|
||||
<string name="stream_list_default_camera_name">Videocamera n°{camNo}</string>
|
||||
<string name="stream_list_default_camera_name">Videocamera senza nome n°{camNo}</string>
|
||||
|
||||
<string name="add_stream_placeholder_url">rtsp://username:password@192.168.1.123:554</string>
|
||||
<string name="add_stream_name">Nome della IP Camera</string>
|
||||
<string name="add_stream">Inserisci l\'url dello stream RTSP della tua IP Camera. Nota che questo differisce tra un modello e l\'altro. Consulta il pannello di configurazione o il manuale della tua IP Camera.</string>
|
||||
<string name="add_stream_save">Salva</string>
|
||||
<string name="add_stream_invalid_url">L\'URL RTSP non è valido</string>
|
||||
<string name="add_stream_invalid_url_dismiss">Chiudi</string>
|
||||
<string name="add_stream_error_saving">Si è verificato un errore durante il salvataggio della configurazione.</string>
|
||||
|
||||
<string name="menu_add_camera">Aggiungi</string>
|
||||
|
||||
<string name="app_info_title">Informazioni su Ojo</string>
|
||||
<string name="app_info_creator_desc">Creato da Daniele Verducci.</string>
|
||||
<string name="app_info_license_desc">Questa app è rilasciata sotto licenza GNU GENERAL PUBLIC LICENSE v3+. Puoi ottenerne una copia qui: https://raw.githubusercontent.com/penguin86/ojo/master/LICENSE</string>
|
||||
|
@ -4,15 +4,18 @@
|
||||
<string name="first_fragment_label">First Fragment</string>
|
||||
<string name="second_fragment_label">Second Fragment</string>
|
||||
|
||||
<string name="stream_list_default_camera_name">Camera {camNo}</string>
|
||||
<string name="stream_list_default_camera_name">Unnamed camera {camNo}</string>
|
||||
|
||||
<string name="add_stream_placeholder_url">rtsp://username:password@192.168.1.123:554</string>
|
||||
<string name="add_stream_name">Camera name</string>
|
||||
<string name="add_stream">Please insert your camera\'s RTSP stream. Note that the URL differs from camera to camera: you can find the complete URL in your camera\'s settings or user manual.</string>
|
||||
<string name="add_stream_save">Save</string>
|
||||
<string name="add_stream_invalid_url">Invalid RTSP url</string>
|
||||
<string name="add_stream_invalid_url_dismiss">Dismiss</string>
|
||||
<string name="add_stream_error_saving">An error has occurred while saving configuration</string>
|
||||
|
||||
<string name="menu_add_camera">Add</string>
|
||||
|
||||
<string name="app_info_title">About Ojo</string>
|
||||
<string name="app_info_creator_desc">Created by Daniele Verducci.</string>
|
||||
<string name="app_info_license_desc">This application is licensed under the GNU GENERAL PUBLIC LICENSE v3+. You can obtain a copy here: https://raw.githubusercontent.com/penguin86/ojo/master/LICENSE</string>
|
||||
|
@ -14,4 +14,6 @@
|
||||
<item name="colorOnSecondary">@color/white</item>
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
</resources>
|
Reference in New Issue
Block a user