2017-01-03 10:30:27 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-12-18 01:25:35 +11:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-02-04 08:45:14 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-01-03 10:30:27 +11:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
2017-01-03 10:30:27 +11:00
|
|
|
tools:context="com.keylesspalace.tusky.LoginActivity">
|
|
|
|
|
2018-02-04 08:45:14 +11:00
|
|
|
<ScrollView
|
2017-01-03 10:30:27 +11:00
|
|
|
android:layout_width="match_parent"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:fillViewport="true"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-05-08 20:17:41 +10:00
|
|
|
<LinearLayout
|
2018-02-04 08:45:14 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-03-16 06:32:26 +11:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="16dp">
|
2017-02-05 15:20:19 +11:00
|
|
|
|
2018-02-04 08:45:14 +11:00
|
|
|
<ImageView
|
2018-08-16 04:51:35 +10:00
|
|
|
android:layout_width="160dp"
|
|
|
|
android:layout_height="178dp"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:layout_marginBottom="50dp"
|
|
|
|
android:contentDescription="@null"
|
2019-10-30 06:30:46 +11:00
|
|
|
android:id="@+id/loginLogo"
|
2018-08-16 04:51:35 +10:00
|
|
|
app:srcCompat="@drawable/elephant_friend" />
|
2017-05-08 20:17:41 +10:00
|
|
|
|
2018-02-04 08:45:14 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/loginInputLayout"
|
|
|
|
android:layout_width="wrap_content"
|
2017-05-08 20:17:41 +10:00
|
|
|
android:layout_height="wrap_content"
|
2018-12-18 01:25:35 +11:00
|
|
|
android:clipChildren="false"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:orientation="vertical">
|
2017-05-08 20:17:41 +10:00
|
|
|
|
2018-12-18 01:25:35 +11:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/domainTextInputLayout"
|
|
|
|
style="@style/TuskyTextInput"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:layout_width="250dp"
|
2018-12-18 01:25:35 +11:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:hint="@string/hint_domain"
|
|
|
|
app:errorEnabled="true">
|
2018-02-04 08:45:14 +11:00
|
|
|
|
2018-12-18 01:25:35 +11:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2018-02-04 08:45:14 +11:00
|
|
|
android:id="@+id/domainEditText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ems="10"
|
|
|
|
android:inputType="textUri" />
|
2018-12-18 01:25:35 +11:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2018-02-04 08:45:14 +11:00
|
|
|
|
2018-12-18 01:25:35 +11:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2018-02-04 08:45:14 +11:00
|
|
|
android:id="@+id/loginButton"
|
2018-12-18 01:25:35 +11:00
|
|
|
style="@style/TuskyButton"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:layout_width="250dp"
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-18 01:25:35 +11:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/action_login" />
|
2018-02-04 08:45:14 +11:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/whatsAnInstanceTextView"
|
|
|
|
android:layout_width="250dp"
|
|
|
|
android:layout_height="wrap_content"
|
2018-12-18 01:25:35 +11:00
|
|
|
android:paddingTop="8dp"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:text="@string/link_whats_an_instance"
|
|
|
|
android:textAlignment="center" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/loginLoadingLayout"
|
2017-05-08 20:17:41 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-04 08:45:14 +11:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="250dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:text="@string/login_connection"
|
|
|
|
android:textAlignment="center" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-05-08 20:17:41 +10:00
|
|
|
</LinearLayout>
|
2018-02-04 08:45:14 +11:00
|
|
|
</ScrollView>
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2018-12-18 01:25:35 +11:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2018-02-04 08:45:14 +11:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2017-04-03 09:55:41 +10:00
|
|
|
|
2018-12-18 01:25:35 +11:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|