2019-09-06 17:55:14 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2019-01-07 15:27:06 +01:00
|
|
|
Copyright 2019 Thomas Schneider
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
This file is a part of Fedilab
|
2019-01-07 15:27:06 +01:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2019-01-07 15:27:06 +01:00
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
Public License for more details.
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
You should have received a copy of the GNU General Public License along with Fedilab; if not,
|
2019-01-07 15:27:06 +01:00
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
|
|
|
|
2019-09-06 17:55:14 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-01-07 15:27:06 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-05-18 11:10:30 +02:00
|
|
|
tools:context="app.fedilab.android.activities.PeertubeUploadActivity">
|
2019-01-07 15:27:06 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<Button
|
2019-01-07 16:44:19 +01:00
|
|
|
android:id="@+id/set_upload_file"
|
2019-11-15 16:32:25 +01:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
2019-01-07 15:27:06 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_gravity="center_horizontal"
|
2019-01-07 16:44:19 +01:00
|
|
|
android:enabled="false"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/file_to_upload"
|
|
|
|
android:textSize="16sp" />
|
2019-01-07 15:27:06 +01:00
|
|
|
|
|
|
|
<TextView
|
2019-01-07 16:44:19 +01:00
|
|
|
android:id="@+id/set_upload_file_name"
|
2019-01-07 15:27:06 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="gone" />
|
2019-01-07 15:27:06 +01:00
|
|
|
|
|
|
|
<!-- Videos channels -->
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center_horizontal"
|
2019-01-07 15:27:06 +01:00
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-01-07 15:27:06 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/channel"
|
|
|
|
android:textSize="16sp" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-11-20 11:57:25 +01:00
|
|
|
<Spinner
|
2019-01-07 15:27:06 +01:00
|
|
|
android:id="@+id/set_upload_channel"
|
2019-01-08 19:29:07 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-20 11:57:25 +01:00
|
|
|
android:textSize="16sp" />
|
2019-01-07 15:27:06 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Videos Privacy -->
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center_horizontal"
|
2019-01-07 15:27:06 +01:00
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-01-07 15:27:06 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/action_privacy"
|
|
|
|
android:textSize="16sp" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-11-20 11:57:25 +01:00
|
|
|
<Spinner
|
2019-01-07 15:27:06 +01:00
|
|
|
android:id="@+id/set_upload_privacy"
|
2019-01-08 19:29:07 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-16 20:00:45 +02:00
|
|
|
android:textSize="16sp" />
|
2019-01-07 15:27:06 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2019-10-31 11:56:15 +01:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/video_title"
|
|
|
|
android:layout_width="250dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:hint="@string/title_video_peertube"
|
2019-10-31 11:56:15 +01:00
|
|
|
android:inputType="text"
|
2020-05-16 11:32:09 +02:00
|
|
|
android:singleLine="true" />
|
2019-10-31 11:56:15 +01:00
|
|
|
|
2019-01-07 15:27:06 +01:00
|
|
|
<!-- Videos upload submit -->
|
|
|
|
<Button
|
|
|
|
android:id="@+id/set_upload_submit"
|
2019-11-15 16:32:25 +01:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
2019-01-07 15:27:06 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="40dp"
|
2019-01-07 15:27:06 +01:00
|
|
|
android:enabled="false"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/upload_video"
|
|
|
|
android:textSize="18sp" />
|
2019-01-07 15:27:06 +01:00
|
|
|
</LinearLayout>
|
2019-06-11 19:38:26 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|