121 lines
5.2 KiB
XML
121 lines
5.2 KiB
XML
|
<layout>
|
||
|
<data>
|
||
|
<variable name="viewModel" type="com.smarthomies.realtimetalk.viewmodels.RegistrationViewModel"/>
|
||
|
<import type="android.view.View" />
|
||
|
</data>
|
||
|
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
android:gravity="center"
|
||
|
android:orientation="vertical"
|
||
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
||
|
android:paddingTop="@dimen/activity_vertical_margin"
|
||
|
android:background="@color/colorPrimary"
|
||
|
tools:context="com.smarthomies.realtimetalk.views.activities.LoginActivity">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/llContainer"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
android:layout_gravity="center">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvUserInfoTitle"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/title.welcome"
|
||
|
android:gravity="center"
|
||
|
android:textSize="48sp"
|
||
|
android:textColor="@color/colorAccent"
|
||
|
android:fontFamily="cursive"/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvUserInfoSubTitle"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/subtitle.welcome"
|
||
|
android:gravity="center"
|
||
|
android:layout_marginTop="16dp"
|
||
|
android:textSize="36sp"
|
||
|
android:textColor="@color/colorAccent"
|
||
|
android:fontFamily="cursive"/>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/llForm"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
android:layout_marginTop="37dp">
|
||
|
|
||
|
<android.support.design.widget.TextInputLayout
|
||
|
android:id="@+id/tilUsername"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textColorHint="@color/white.50"
|
||
|
app:counterTextAppearance="@color/colorAccent">
|
||
|
|
||
|
<android.support.design.widget.TextInputEditText
|
||
|
android:id="@+id/tietUsername"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="@string/prompt.username"
|
||
|
android:inputType="textVisiblePassword"
|
||
|
android:maxLines="1"
|
||
|
android:textColor="@color/white"
|
||
|
android:textColorHint="@color/white.50"
|
||
|
android:textSize="16sp"
|
||
|
android:text="@={viewModel.username}"/>
|
||
|
|
||
|
</android.support.design.widget.TextInputLayout>
|
||
|
|
||
|
<android.support.design.widget.TextInputLayout
|
||
|
android:id="@+id/tilEmail"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textColorHint="@color/white.50"
|
||
|
app:counterTextAppearance="@color/colorAccent"
|
||
|
app:passwordToggleTint="@color/white.50"
|
||
|
android:layout_marginTop="16dp">
|
||
|
|
||
|
<android.support.design.widget.TextInputEditText
|
||
|
android:id="@+id/tietEmail"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="@string/prompt.email"
|
||
|
android:imeActionId="@+id/login"
|
||
|
android:imeOptions="actionDone"
|
||
|
android:inputType="textEmailAddress"
|
||
|
android:maxLines="1"
|
||
|
android:textColor="@color/white"
|
||
|
android:textColorHint="@color/white.50"
|
||
|
android:textSize="16sp"
|
||
|
android:text="@={viewModel.email}"/>
|
||
|
|
||
|
</android.support.design.widget.TextInputLayout>
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/btnLogin"
|
||
|
style="?android:textAppearanceSmall"
|
||
|
android:background="@drawable/button_normal"
|
||
|
android:textColor="@color/colorAccent"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="60dp"
|
||
|
android:text="@string/action.next"
|
||
|
android:textStyle="bold"
|
||
|
android:onClick="@{viewModel.onInfoNext()}"/>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</layout>
|
||
|
|
||
|
|