2020-07-01 16:36:08 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
|
Copyright 2020 Thomas Schneider
|
|
|
|
|
|
|
|
This file is a part of TubeLab
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2020-11-28 10:26:20 +01:00
|
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-06-26 14:34:39 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".PeertubeUploadActivity">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-06-30 12:00:55 +02:00
|
|
|
android:layout_marginTop="50dp"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2020-11-24 17:32:18 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:labelFor="@+id/total_quota"
|
|
|
|
android:text="@string/total_video_quota" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/total_quota_value"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/total_quota"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="300dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:max="100"
|
|
|
|
android:progressDrawable="@drawable/progress_bar" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:labelFor="@+id/daily_quota"
|
|
|
|
android:text="@string/daily_video_quota" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/daily_quota_value"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/daily_quota"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="300dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:indeterminate="false"
|
|
|
|
android:max="100"
|
|
|
|
android:progressDrawable="@drawable/progress_bar" />
|
|
|
|
|
2020-06-26 14:34:39 +02:00
|
|
|
<Button
|
2020-11-24 17:32:18 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:id="@+id/set_upload_file"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:enabled="false"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/file_to_upload"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/set_upload_file_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<!-- Videos channels -->
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/channel"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/set_upload_channel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Videos Privacy -->
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/action_privacy"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/set_upload_privacy"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-11-21 11:06:26 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
2020-06-30 12:00:55 +02:00
|
|
|
android:layout_width="300dp"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-30 13:33:43 +02:00
|
|
|
android:layout_gravity="center"
|
2020-11-21 11:06:26 +01:00
|
|
|
android:layout_marginTop="20dp">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/video_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:hint="@string/title_video_peertube"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="text"
|
|
|
|
android:singleLine="true" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
2020-06-26 14:34:39 +02:00
|
|
|
|
|
|
|
<!-- Videos upload submit -->
|
|
|
|
<Button
|
|
|
|
android:id="@+id/set_upload_submit"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="40dp"
|
|
|
|
android:enabled="false"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/upload_video"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
</LinearLayout>
|
2020-11-28 10:26:20 +01:00
|
|
|
</androidx.core.widget.NestedScrollView>
|