fedilab-Android-App/app/src/main/res/layout/activity_peertube_edit.xml

274 lines
11 KiB
XML
Raw Normal View History

2019-09-06 17:55:14 +02:00
<?xml version="1.0" encoding="utf-8"?><!--
2019-01-08 10:50:43 +01:00
Copyright 2019 Thomas Schneider
2019-05-18 11:10:30 +02:00
This file is a part of Fedilab
2019-01-08 10:50:43 +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-08 10:50:43 +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-08 10:50:43 +01:00
see <http://www.gnu.org/licenses>.
-->
2019-06-11 19:38:26 +02:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-11-15 16:32:25 +01:00
xmlns:TagsEditText="http://schemas.android.com/apk/res-auto"
2019-01-08 10:50:43 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/fab_margin"
2019-11-15 16:32:25 +01:00
android:layout_marginLeft="@dimen/fab_margin"
2019-01-08 10:50:43 +01:00
android:layout_marginEnd="@dimen/fab_margin"
2019-11-15 16:32:25 +01:00
android:layout_marginRight="@dimen/fab_margin"
2019-05-18 11:10:30 +02:00
tools:context="app.fedilab.android.activities.PeertubeUploadActivity">
2019-09-06 17:55:14 +02:00
<ScrollView
2019-01-08 10:50:43 +01:00
android:layout_width="match_parent"
2019-09-06 17:55:14 +02:00
android:layout_height="match_parent">
2019-01-08 10:50:43 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
<!-- Video title -->
<LinearLayout
2019-01-08 10:50:43 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:labelFor="@+id/p_video_title"
android:text="@string/title" />
2019-09-06 17:55:14 +02:00
<EditText
android:id="@+id/p_video_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text" />
</LinearLayout>
<!-- Video tags -->
<LinearLayout
2019-01-08 10:50:43 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:labelFor="@+id/p_video_tags"
android:text="@string/tags" />
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<mabbas007.tagsedittext.TagsEditText
android:id="@+id/p_video_tags"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:inputType="textMultiLine"
android:lines="2"
android:minLines="2"
2019-09-06 17:55:14 +02:00
TagsEditText:allowSpaceInTag="true"
2019-11-15 16:32:25 +01:00
TagsEditText:tagsCloseImagePadding="@dimen/defaultTagsCloseImagePadding"
2019-09-06 17:55:14 +02:00
TagsEditText:tagsCloseImageRight="@drawable/tag_close"
2019-11-07 17:52:12 +01:00
TagsEditText:tagsTextColor="?colorAccent"
2019-11-15 16:32:25 +01:00
TagsEditText:tagsTextSize="@dimen/defaultTagsTextSize" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
<!-- video description -->
<LinearLayout
2019-01-08 10:50:43 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:labelFor="@+id/p_video_description"
android:text="@string/description" />
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<EditText
android:id="@+id/p_video_description"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:inputType="textMultiLine"
2019-09-06 17:55:14 +02:00
android:lines="5"
android:maxLines="5"
android:scrollbars="vertical" />
</LinearLayout>
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<!-- Videos channels -->
<LinearLayout
2019-01-08 18:36:01 +01:00
android:layout_width="match_parent"
2019-09-06 17:55:14 +02:00
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_vertical"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/channel" />
2019-01-08 10:50:43 +01:00
2019-11-20 11:57:25 +01:00
<Spinner
2019-09-06 17:55:14 +02:00
android:id="@+id/set_upload_channel"
android:layout_width="match_parent"
2020-05-16 20:00:45 +02:00
android:layout_height="wrap_content" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
<!-- Videos categories -->
<LinearLayout
2019-01-08 18:36:01 +01:00
android:layout_width="match_parent"
2019-09-06 17:55:14 +02:00
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_gravity="center_vertical"
2019-09-06 17:55:14 +02:00
android:layout_marginTop="10dp"
android:gravity="center_vertical"
android:orientation="vertical">
2019-01-08 18:11:40 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/category" />
2019-01-08 18:11:40 +01:00
2019-11-20 11:57:25 +01:00
<Spinner
2019-09-06 17:55:14 +02:00
android:id="@+id/set_upload_categories"
android:layout_width="match_parent"
2020-05-16 20:00:45 +02:00
android:layout_height="wrap_content" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
2019-01-08 18:11:40 +01:00
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<!-- Videos licences -->
<LinearLayout
android:layout_width="match_parent"
2019-01-08 18:11:40 +01:00
android:layout_height="wrap_content"
2019-09-06 17:55:14 +02:00
android:layout_gravity="center_vertical"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="10dp"
android:gravity="center_vertical"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/license" />
2019-11-20 11:57:25 +01:00
<Spinner
2019-09-06 17:55:14 +02:00
android:id="@+id/set_upload_licenses"
android:layout_width="match_parent"
2020-05-16 20:00:45 +02:00
android:layout_height="wrap_content" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
<!-- Videos languages -->
<LinearLayout
2019-01-08 18:36:01 +01:00
android:layout_width="match_parent"
2019-09-06 17:55:14 +02:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="10dp"
android:gravity="center_vertical"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/language" />
2019-01-08 18:11:40 +01:00
2019-11-20 11:57:25 +01:00
<Spinner
2019-09-06 17:55:14 +02:00
android:id="@+id/set_upload_languages"
android:layout_width="match_parent"
2020-05-16 20:00:45 +02:00
android:layout_height="wrap_content" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
2019-01-08 10:50:43 +01:00
2019-09-06 17:55:14 +02:00
<!-- Videos Privacy -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="10dp"
android:gravity="center_vertical"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-12 17:36:24 +01:00
2019-09-06 17:55:14 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/action_privacy" />
2019-01-12 17:36:24 +01:00
2019-11-20 11:57:25 +01:00
<Spinner
2019-09-06 17:55:14 +02:00
android:id="@+id/set_upload_privacy"
android:layout_width="match_parent"
2020-05-16 20:00:45 +02:00
android:layout_height="wrap_content" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
<!-- More options -->
<LinearLayout
android:layout_width="match_parent"
2019-01-12 17:36:24 +01:00
android:layout_height="wrap_content"
2019-09-06 17:55:14 +02:00
android:layout_gravity="center_vertical"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="20dp"
android:gravity="center_vertical"
2019-09-06 17:55:14 +02:00
android:orientation="vertical">
2019-01-12 17:36:24 +01:00
2019-09-06 17:55:14 +02:00
<CheckBox
android:id="@+id/set_upload_nsfw"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:text="@string/peertube_nsfw" />
2019-01-12 17:36:24 +01:00
2019-09-06 17:55:14 +02:00
<CheckBox
android:id="@+id/set_upload_enable_comments"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:text="@string/peertube_enable_comments" />
2019-09-06 17:55:14 +02:00
</LinearLayout>
<LinearLayout
2019-01-12 17:36:24 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_gravity="center"
2019-09-06 17:55:14 +02:00
android:layout_marginTop="40dp"
2019-11-15 16:32:25 +01:00
android:orientation="horizontal">
2019-09-06 17:55:14 +02:00
<!-- Videos upload edit submit -->
<Button
android:id="@+id/set_upload_delete"
2019-11-15 16:32:25 +01:00
style="@style/Base.Widget.AppCompat.Button.Colored"
2019-09-06 17:55:14 +02: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-09-06 17:55:14 +02:00
android:layout_margin="10dp"
2019-11-15 16:32:25 +01:00
android:backgroundTint="@color/unfollow"
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/delete_video" />
2019-01-12 17:36:24 +01:00
2019-09-06 17:55:14 +02:00
<!-- Videos upload edit submit -->
<Button
android:id="@+id/set_upload_submit"
2019-11-15 16:32:25 +01:00
style="@style/Base.Widget.AppCompat.Button.Colored"
2019-09-06 17:55:14 +02: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-09-06 17:55:14 +02:00
android:layout_margin="10dp"
android:enabled="false"
2019-11-15 16:32:25 +01:00
android:gravity="center"
2019-09-06 17:55:14 +02:00
android:text="@string/update_video" />
</LinearLayout>
</LinearLayout>
</ScrollView>
2019-06-11 19:38:26 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>