Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
5508bae6
Commit
5508bae6
authored
Jul 09, 2018
by
Sajal Narang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace EditTexts with TextInputEditTexts, fix #138
parent
a077749e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
23 deletions
+35
-23
app/src/main/res/layout/activity_login.xml
app/src/main/res/layout/activity_login.xml
+35
-23
No files found.
app/src/main/res/layout/activity_login.xml
View file @
5508bae6
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment