forked from ChatAir/ChatAir-android
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5 Final touches on the Login Screen.
- Loading branch information
1 parent
2a83c96
commit e94dad5
Showing
23 changed files
with
210 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.chatair_android | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
|
||
class LoginActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_login) | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<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=".LoginActivity"> | ||
|
||
<ImageView | ||
android:id="@+id/imageView" | ||
android:layout_width="138dp" | ||
android:layout_height="146dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:srcCompat="@drawable/chatair_img" /> | ||
|
||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sign_in_title" | ||
android:textColor="@color/brightcerulean" | ||
android:textSize="28sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/imageView" /> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
android:id="@+id/textInputLayout2" | ||
android:layout_width="320dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="28dp" | ||
android:layout_marginEnd="8dp" | ||
android:hint="@string/email_address" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.493" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/textView"> | ||
|
||
<com.google.android.material.textfield.TextInputEditText | ||
android:id="@+id/field_email" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:inputType="text" | ||
android:maxLines="1" /> | ||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
android:id="@+id/password_text_input" | ||
android:layout_width="320dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginTop="32dp" | ||
android:layout_marginEnd="8dp" | ||
android:hint="@string/password" | ||
app:errorEnabled="true" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/textInputLayout2"> | ||
|
||
<com.google.android.material.textfield.TextInputEditText | ||
android:id="@+id/fieldPassword" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:inputType="textPassword" /> | ||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
<CheckBox | ||
android:id="@+id/checkBox" | ||
android:layout_width="25dp" | ||
android:layout_height="25dp" | ||
android:layout_marginTop="24dp" | ||
app:layout_constraintStart_toStartOf="@+id/password_text_input" | ||
app:layout_constraintTop_toBottomOf="@+id/password_text_input" /> | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="20dp" | ||
android:layout_marginLeft="20dp" | ||
android:text="@string/remember_me" | ||
android:textColor="@color/brightcerulean" | ||
android:textSize="16sp" | ||
app:layout_constraintBottom_toBottomOf="@+id/checkBox" | ||
app:layout_constraintStart_toEndOf="@+id/checkBox" | ||
app:layout_constraintTop_toTopOf="@+id/checkBox" /> | ||
|
||
<TextView | ||
android:id="@+id/textView3" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="72dp" | ||
android:layout_marginLeft="72dp" | ||
android:text="@string/forgot_password" | ||
android:textColor="@color/brightcerulean" | ||
android:textSize="16sp" | ||
app:layout_constraintEnd_toEndOf="@+id/password_text_input" | ||
app:layout_constraintHorizontal_bias="1.0" | ||
app:layout_constraintStart_toEndOf="@+id/textView2" | ||
app:layout_constraintTop_toTopOf="@+id/textView2" /> | ||
|
||
<Button | ||
android:id="@+id/button" | ||
android:layout_width="320dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="44dp" | ||
android:background="@color/brightcerulean" | ||
android:text="@string/sign_in_btn" | ||
android:textColor="@color/white" | ||
android:textSize="18sp" | ||
app:layout_constraintEnd_toEndOf="@+id/textView3" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:layout_constraintStart_toStartOf="@+id/checkBox" | ||
app:layout_constraintTop_toBottomOf="@+id/textView2" /> | ||
|
||
<TextView | ||
android:id="@+id/textView4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="12dp" | ||
android:text="@string/or" | ||
android:textColor="@color/brightcerulean" | ||
android:textSize="20sp" | ||
app:layout_constraintEnd_toEndOf="@+id/button" | ||
app:layout_constraintHorizontal_bias="0.498" | ||
app:layout_constraintStart_toStartOf="@+id/button" | ||
app:layout_constraintTop_toBottomOf="@+id/button" /> | ||
|
||
<Button | ||
android:id="@+id/button2" | ||
android:layout_width="340dp" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/rectangle_15" | ||
android:drawableLeft="@drawable/google_icon" | ||
android:drawableStart="@drawable/google_icon" | ||
android:drawablePadding="-55dp" | ||
android:text="@string/login_btn" | ||
android:textAlignment="center" | ||
android:textSize="18sp" | ||
app:layout_constraintEnd_toEndOf="@+id/button" | ||
app:layout_constraintStart_toStartOf="@+id/button" | ||
app:layout_constraintTop_toBottomOf="@+id/textView4" /> | ||
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<resources> | ||
<color name="colorPrimary">#008577</color> | ||
<color name="colorPrimaryDark">#00574B</color> | ||
<color name="colorAccent">#D81B60</color> | ||
<color name="colorPrimary">#008577</color> | ||
<color name="colorPrimaryDark">#00574B</color> | ||
<color name="colorAccent">#1c9eda</color> | ||
<color name="brightcerulean">#1c9eda</color> | ||
<color name="white">#ffffff</color> | ||
<color name="gainsboro">#e1d9d9</color> | ||
<color name="black">#000000</color> | ||
<color name="dimgray">#707070</color> | ||
<color name="gainsboro_1">#dddddd</color> | ||
<color name="darkmidnightblue">#094166</color> | ||
<color name="darkslateblue">#275879</color> | ||
</resources> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<resources> | ||
<string name="app_name">ChatAir-android</string> | ||
<string name="sign_in_title">Sign In</string> | ||
<string name="email_address">Email Address</string> | ||
<string name="password">Password</string> | ||
<string name="remember_me">Remember me</string> | ||
<string name="forgot_password">Forgot Password</string> | ||
<string name="sign_in_btn">Sign In</string> | ||
<string name="or">Or</string> | ||
<string name="login_btn">Login with Google</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters