a445c12094
* upgrade to AndroidX, upgrade libraries * move to MaterialComponents theme * make sure the compose button looks good everywhere * fix tollbar title/button alignment on tablet * move to new material color theming, consolidate colors and themes * fix build, fix imports * set error on TextInputLayout instead of EditText * fix imports, TootButton when * improve snackbar style * fix task description color
104 lines
No EOL
4.2 KiB
XML
104 lines
No EOL
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
tools:context="com.keylesspalace.tusky.LoginActivity">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="160dp"
|
|
android:layout_height="178dp"
|
|
android:layout_marginBottom="50dp"
|
|
android:contentDescription="@null"
|
|
app:srcCompat="@drawable/elephant_friend" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/loginInputLayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clipChildren="false"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/domainTextInputLayout"
|
|
style="@style/TuskyTextInput"
|
|
android:layout_width="250dp"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_domain"
|
|
app:errorEnabled="true">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/domainEditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:inputType="textUri" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/loginButton"
|
|
style="@style/TuskyButton"
|
|
android:layout_width="250dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center"
|
|
android:text="@string/action_login" />
|
|
|
|
<TextView
|
|
android:id="@+id/whatsAnInstanceTextView"
|
|
android:layout_width="250dp"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="8dp"
|
|
android:text="@string/link_whats_an_instance"
|
|
android:textAlignment="center" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/loginLoadingLayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
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" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |