Commit 5508bae6 authored by Sajal Narang's avatar Sajal Narang

Replace EditTexts with TextInputEditTexts, fix #138

parent a077749e
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical" android:orientation="vertical"
android:weightSum="2"> android:weightSum="2">
...@@ -10,16 +12,16 @@ ...@@ -10,16 +12,16 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:layout_weight="1"
android:layout_weight="1"> android:orientation="vertical">
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="199dp" android:layout_height="199dp"
android:layout_marginBottom="15dp"
android:contentDescription="InstiApp" android:contentDescription="InstiApp"
android:paddingLeft="100dp" android:paddingLeft="100dp"
android:paddingRight="100dp" android:paddingRight="100dp"
android:layout_marginBottom="15dp"
android:scaleType="fitEnd" android:scaleType="fitEnd"
app:srcCompat="@drawable/lotus" /> app:srcCompat="@drawable/lotus" />
...@@ -34,35 +36,45 @@ ...@@ -34,35 +36,45 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:padding="20dp" android:padding="20dp">
android:layout_weight="1">
<EditText <android.support.design.widget.TextInputLayout
android:id="@+id/login_username"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:ems="10"
android:inputType="textPersonName"
android:hint="LDAP ID" />
<EditText <android.support.design.widget.TextInputEditText
android:id="@+id/login_password" android:id="@+id/login_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="LDAP ID"
android:inputType="text" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:ems="10"
android:inputType="textPassword" <android.support.design.widget.TextInputEditText
android:layout_marginTop="10dp" android:id="@+id/login_password"
android:layout_marginBottom="10dp" android:layout_width="match_parent"
android:hint="Password" /> android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android:ems="10"
android:hint="Password"
android:inputType="textPassword" />
</android.support.design.widget.TextInputLayout>
<Button <Button
android:id="@+id/login_button" android:id="@+id/login_button"
style="@style/Widget.AppCompat.Button.Colored" style="@style/Widget.AppCompat.Button.Colored"
android:textColor="@color/primaryTextColor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Log In" /> android:text="Log In"
android:textColor="@color/primaryTextColor" />
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -74,11 +86,11 @@ ...@@ -74,11 +86,11 @@
android:id="@+id/login_guest" android:id="@+id/login_guest"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="5dp"
android:text="Continue as a Guest" android:text="Continue as a Guest"
android:textAlignment="center" android:textAlignment="center"
android:textAllCaps="false" android:textAllCaps="false"
android:textAppearance="@style/TextAppearance.AppCompat.Light.SearchResult.Subtitle" android:textAppearance="@style/TextAppearance.AppCompat.Light.SearchResult.Subtitle" />
android:paddingTop="5dp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment