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-09-05 17:15:07 +02:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-06-28 19:11:39 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_height="match_parent">
|
2020-06-28 19:11:39 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:orientation="vertical">
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-09-05 17:15:07 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2020-06-28 19:11:39 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2020-09-05 17:15:07 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:gravity="center" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-06-28 19:11:39 +02:00
|
|
|
|
|
|
|
<TextView
|
2020-09-05 17:15:07 +02:00
|
|
|
android:id="@+id/error_message"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-28 19:11:39 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="@drawable/red_border"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:textColor="@color/red_1"
|
|
|
|
android:visibility="gone" />
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-09-13 19:20:04 +02:00
|
|
|
|
2020-09-17 19:01:31 +02:00
|
|
|
<LinearLayout
|
2020-11-04 18:39:45 +01:00
|
|
|
android:visibility="gone"
|
2020-09-17 19:01:31 +02:00
|
|
|
android:id="@+id/title_login_instance"
|
|
|
|
android:layout_width="match_parent"
|
2020-10-01 17:42:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:orientation="horizontal">
|
2020-09-17 19:01:31 +02:00
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<ss.anoop.awesometextinputlayout.AwesomeTextInputLayout
|
|
|
|
android:id="@+id/login_instance_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:borderColor="?attr/colorAccent"
|
|
|
|
app:borderWidth="1dp"
|
|
|
|
app:cornerRadius="8dp"
|
|
|
|
android:padding="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/login_instance"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textWebEditText"
|
|
|
|
android:hint="@string/title_instance_login"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:importantForAutofill="no" />
|
|
|
|
|
|
|
|
</ss.anoop.awesometextinputlayout.AwesomeTextInputLayout>
|
2020-09-17 19:01:31 +02:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/instance_help"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:padding="2dp"
|
|
|
|
android:text="@string/help" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-09-13 19:20:04 +02:00
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<ss.anoop.awesometextinputlayout.AwesomeTextInputLayout
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
app:borderColor="?attr/colorAccent"
|
|
|
|
app:borderWidth="1dp"
|
|
|
|
app:cornerRadius="8dp"
|
|
|
|
android:padding="16dp"
|
2020-09-05 17:15:07 +02:00
|
|
|
app:errorEnabled="true">
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<EditText
|
2020-09-05 17:15:07 +02:00
|
|
|
android:id="@+id/username"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
android:hint="@string/username"
|
|
|
|
android:maxLength="50"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="text" />
|
|
|
|
</ss.anoop.awesometextinputlayout.AwesomeTextInputLayout>
|
2020-06-28 19:11:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<ss.anoop.awesometextinputlayout.AwesomeTextInputLayout
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
app:borderColor="?attr/colorAccent"
|
|
|
|
app:borderWidth="1dp"
|
|
|
|
app:cornerRadius="8dp"
|
|
|
|
android:padding="16dp"
|
2020-09-05 17:15:07 +02:00
|
|
|
app:errorEnabled="true">
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<EditText
|
2020-09-05 17:15:07 +02:00
|
|
|
android:id="@+id/email"
|
2020-11-04 18:39:45 +01:00
|
|
|
android:hint="@string/email"
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-04 18:39:45 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="textEmailAddress" />
|
|
|
|
</ss.anoop.awesometextinputlayout.AwesomeTextInputLayout>
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-09-05 17:15:07 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/email_indicator"
|
|
|
|
android:textSize="12sp" />
|
2020-06-28 19:11:39 +02:00
|
|
|
|
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<ss.anoop.awesometextinputlayout.AwesomeTextInputLayout
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
app:borderColor="?attr/colorAccent"
|
|
|
|
app:borderWidth="1dp"
|
|
|
|
app:cornerRadius="8dp"
|
|
|
|
android:padding="16dp"
|
2020-09-05 17:15:07 +02:00
|
|
|
app:errorEnabled="true">
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<EditText
|
2020-09-05 17:15:07 +02:00
|
|
|
android:id="@+id/password"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
android:inputType="textPassword"
|
|
|
|
android:hint="@string/password"
|
|
|
|
android:importantForAutofill="no" />
|
|
|
|
</ss.anoop.awesometextinputlayout.AwesomeTextInputLayout>
|
2020-06-28 19:11:39 +02:00
|
|
|
|
|
|
|
|
2020-09-05 17:15:07 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/password_indicator"
|
|
|
|
android:textSize="12sp" />
|
2020-06-28 19:11:39 +02:00
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<ss.anoop.awesometextinputlayout.AwesomeTextInputLayout
|
2020-09-05 17:15:07 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
app:borderColor="?attr/colorAccent"
|
|
|
|
app:borderWidth="1dp"
|
|
|
|
app:cornerRadius="8dp"
|
|
|
|
android:padding="16dp"
|
2020-09-05 17:15:07 +02:00
|
|
|
app:errorEnabled="true">
|
|
|
|
|
2020-11-04 18:39:45 +01:00
|
|
|
<EditText
|
2020-09-05 17:15:07 +02:00
|
|
|
android:id="@+id/password_confirm"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-04 18:39:45 +01:00
|
|
|
android:inputType="textPassword"
|
|
|
|
android:hint="@string/password_confirm"
|
|
|
|
android:importantForAutofill="no" />
|
|
|
|
</ss.anoop.awesometextinputlayout.AwesomeTextInputLayout>
|
2020-09-05 17:15:07 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/agreement"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/agreement_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:text="@string/agreement_check_peertube" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/signup"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/sign_up" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|