2022-09-26 17:08:00 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2022-04-27 15:20:42 +02:00
|
|
|
Copyright 2021 Thomas Schneider
|
|
|
|
|
|
|
|
This file is a part of Fedilab
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Fedilab 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 Fedilab; if not,
|
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2023-01-26 18:02:31 +01:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-04-27 15:20:42 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2023-01-26 18:02:31 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:background="?android:windowBackground">
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="12dp">
|
2022-09-26 17:08:00 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/error_message"
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/red_border"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:textColor="?colorError"
|
|
|
|
android:visibility="gone" />
|
2022-09-26 17:08:00 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/invitation"
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/validation_needed"
|
|
|
|
android:textColor="?colorError"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/login_instance_layout"
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-26 18:02:31 +01:00
|
|
|
app:errorEnabled="true">
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/login_instance"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="@string/instance"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="textWebEditText"
|
|
|
|
android:singleLine="true" />
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/login_username_layout"
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:errorEnabled="true">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/login_username"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:autofillHints="username"
|
|
|
|
android:hint="@string/username"
|
|
|
|
android:inputType="text"
|
|
|
|
android:maxLength="30"
|
|
|
|
android:singleLine="true" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/login_email_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:errorEnabled="true"
|
|
|
|
app:helperText="@string/email_indicator">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/login_email"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:autofillHints="emailAddress"
|
|
|
|
android:hint="@string/email"
|
|
|
|
android:inputType="textEmailAddress"
|
|
|
|
android:singleLine="true" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/login_password_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:errorEnabled="true"
|
|
|
|
app:helperText="@string/password_indicator">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/login_password"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:autofillHints="password"
|
|
|
|
android:hint="@string/password"
|
|
|
|
android:inputType="textPassword"
|
|
|
|
android:singleLine="true" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/login_password_confirm_layout"
|
2022-04-27 15:20:42 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
app:errorEnabled="true">
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/login_password_confirm"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:autofillHints="password"
|
|
|
|
android:hint="@string/password_confirm"
|
|
|
|
android:inputType="textPassword"
|
|
|
|
android:singleLine="true" />
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2022-04-27 15:20:42 +02:00
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/agreement"
|
2023-01-26 18:02:31 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
tools:text="@string/agreement_check_peertube" />
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/signup"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:text="@string/sign_up" />
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
2022-04-27 15:20:42 +02:00
|
|
|
|
2023-01-26 18:02:31 +01:00
|
|
|
</ScrollView>
|