122 lines
4.9 KiB
XML
122 lines
4.9 KiB
XML
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<include layout="@layout/toolbar_main" />
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
tools:context="de.vanitasvitae.slam.mvp.view.LoginActivity"
|
|
android:background="@drawable/material_bg">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
app:cardElevation="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/spacing_normal">
|
|
|
|
<!-- Account pictogram -->
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:tint="@color/primaryDarkColor"
|
|
android:src="@drawable/ic_account_circle_black_48dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- Username -->
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/login_username_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:errorEnabled="true">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/login_username"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/hint_jid"
|
|
android:inputType="textEmailAddress"
|
|
android:nextFocusForward="@+id/login_password" />
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<!-- Password -->
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/login_password_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:errorEnabled="true">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/login_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textPassword"
|
|
android:hint="@string/hint_password" />
|
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Button
|
|
android:id="@+id/button_login"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:background="@android:color/transparent"
|
|
android:textColor="@color/secondaryColor"
|
|
android:text="@string/button_login_account" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressbar"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:elevation="30dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|