Yuito-app-android/app/src/main/res/layout/activity_login.xml

63 lines
2.4 KiB
XML
Raw Normal View History

2017-01-03 00:30:27 +01:00
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-01-03 00:30:27 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-03-07 15:03:41 +01:00
android:padding="16dp"
2017-01-03 00:30:27 +01:00
tools:context="com.keylesspalace.tusky.LoginActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-03-07 15:03:41 +01:00
android:layout_centerInParent="true"
android:gravity="center">
2017-01-03 00:30:27 +01:00
2017-03-07 15:03:41 +01:00
<ImageView
2017-01-03 00:30:27 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-07 15:03:41 +01:00
android:src="@drawable/elephant_friend"/>
<android.support.design.widget.TextInputLayout
android:layout_height="match_parent"
android:layout_width="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textUri"
android:hint="@string/hint_domain"
android:ems="10"
android:id="@+id/edit_text_domain" />
</android.support.design.widget.TextInputLayout>
2017-01-03 00:30:27 +01:00
<Button
2017-03-07 15:03:41 +01:00
android:id="@+id/button_login"
2017-01-03 00:30:27 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-07 15:03:41 +01:00
android:layout_marginTop="4dp"
android:elevation="0dp"
android:text="@string/action_login" />
2017-01-03 00:30:27 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-07 15:03:41 +01:00
android:visibility="gone"
2017-01-03 00:30:27 +01:00
android:id="@+id/text_error" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-07 15:03:41 +01:00
android:textAlignment="center"
android:id="@+id/no_account"
android:text="@string/link_no_account" />
2017-01-03 00:30:27 +01:00
</LinearLayout>
2017-01-03 00:30:27 +01:00
</RelativeLayout>
</android.support.design.widget.CoordinatorLayout>