Skip to content

Commit

Permalink
sign in view created
Browse files Browse the repository at this point in the history
  • Loading branch information
hiranthaR committed Feb 21, 2020
1 parent 3219e6b commit 26685b7
Showing 1 changed file with 53 additions and 6 deletions.
59 changes: 53 additions & 6 deletions mobile/app/src/main/res/layout/sign_in_fragment.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
tools:context=".ui.signin.SignInFragment">
tools:context=".ui.signin.SignInFragment"
android:padding="16dp">

<TextView

<androidx.constraintlayout.widget.Guideline
android:id="@+id/guide_line_50"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.6" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:errorEnabled="true"
app:layout_constraintBottom_toBottomOf="@id/guide_line_50">

<EditText
android:id="@+id/et_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Username" />


</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:errorEnabled="true"
app:layout_constraintTop_toTopOf="@id/guide_line_50"
app:passwordToggleEnabled="true"
tools:layout_editor_absoluteX="0dp">

<EditText
android:id="@+id/et_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:inputType="textPassword" />


</com.google.android.material.textfield.TextInputLayout>

<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Hello" />
android:layout_height="wrap_content"
android:text="Login"
app:layout_constraintTop_toBottomOf="@id/til_password" />

</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 26685b7

Please sign in to comment.