forked from samiurprapon/Aether
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Open-Source-Project-Team/master
Android: Sign In UI implemented
- Loading branch information
Showing
9 changed files
with
361 additions
and
8 deletions.
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
android/app/src/main/java/life/nsu/aether/views/LoginActivity.java
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,23 @@ | ||
/* | ||
* LoginActivity Created by Samiur Prapon | ||
* Last modified 7/15/21, 7:39 AM | ||
* Copyright (c) 2021. All rights reserved. | ||
* | ||
*/ | ||
|
||
package life.nsu.aether.views; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.os.Bundle; | ||
|
||
import life.nsu.aether.R; | ||
|
||
public class LoginActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_login); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
android/app/src/main/res/drawable/ic_logo_title_sub_title.xml
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
Large diffs are not rendered by default.
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,155 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!-- | ||
~ activity_login.xml Created by Samiur Prapon | ||
~ Last modified 7/15/21, 7:39 AM | ||
~ Copyright (c) 2021. All rights reserved. | ||
~ | ||
--> | ||
|
||
<ScrollView 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=".views.LoginActivity"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<androidx.appcompat.widget.AppCompatImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="24dp" | ||
android:layout_marginEnd="16dp" | ||
android:src="@drawable/ic_symbolic_eye" | ||
app:layout_constraintBottom_toBottomOf="@+id/appCompatImageView2" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="0.0" /> | ||
|
||
<androidx.appcompat.widget.AppCompatImageView | ||
android:id="@+id/appCompatImageView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="24dp" | ||
android:src="@drawable/ic_logo_title_sub_title" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="0.35000002" /> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
android:id="@+id/til_email" | ||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginStart="24dp" | ||
android:layout_marginTop="16dp" | ||
android:layout_marginEnd="24dp" | ||
android:labelFor="@id/et_email" | ||
app:boxStrokeErrorColor="@color/red_800" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/appCompatImageView2" | ||
app:layout_constraintWidth_percent=".80" | ||
app:startIconDrawable="@drawable/outline_email_24"> | ||
|
||
<com.google.android.material.textfield.TextInputEditText | ||
android:id="@+id/et_email" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:fontFamily="@font/montserrat" | ||
android:hint="@string/title_email_address" | ||
android:importantForAutofill="no" | ||
android:inputType="textEmailAddress" | ||
android:maxLines="1" | ||
android:textColor="#2F281E" | ||
android:textSize="16sp" /> | ||
|
||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
android:id="@+id/til_password" | ||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginTop="14dp" | ||
android:labelFor="@id/et_password" | ||
app:layout_constraintEnd_toEndOf="@+id/til_email" | ||
app:layout_constraintHorizontal_bias="0.0" | ||
app:layout_constraintStart_toStartOf="@+id/til_email" | ||
app:layout_constraintTop_toBottomOf="@+id/til_email" | ||
app:passwordToggleDrawable="@drawable/toggle_password" | ||
app:passwordToggleEnabled="true" | ||
app:startIconDrawable="@drawable/outline_password_24"> | ||
|
||
<com.google.android.material.textfield.TextInputEditText | ||
android:id="@+id/et_password" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:fontFamily="@font/montserrat" | ||
android:hint="@string/title_password" | ||
android:importantForAutofill="no" | ||
android:inputType="textPassword" | ||
android:maxLines="1" | ||
android:textColor="#2F281E" | ||
android:textSize="16sp" /> | ||
|
||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
<com.google.android.material.button.MaterialButton | ||
android:id="@+id/mb_sign_in" | ||
style="@style/Widget.MaterialComponents.Button.TextButton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="4dp" | ||
android:layout_marginTop="4dp" | ||
android:alpha="0.6" | ||
android:text="@string/forget_password" | ||
android:textColor="#2F281E" | ||
app:layout_constraintStart_toStartOf="@+id/til_password" | ||
app:layout_constraintTop_toBottomOf="@+id/til_password" /> | ||
|
||
<com.google.android.material.button.MaterialButton | ||
android:id="@+id/mb_sign_ip" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="4dp" | ||
android:background="@color/main_color" | ||
android:fontFamily="@font/montserrat_bold" | ||
android:text="@string/sign_in" | ||
android:textAllCaps="false" | ||
android:textColor="@color/white" | ||
android:textSize="18sp" | ||
app:layout_constraintEnd_toEndOf="@+id/til_password" | ||
app:layout_constraintHorizontal_bias="1.0" | ||
app:layout_constraintStart_toStartOf="@+id/til_password" | ||
app:layout_constraintTop_toBottomOf="@+id/mb_sign_in" /> | ||
|
||
<com.google.android.material.button.MaterialButton | ||
android:id="@+id/mb_register" | ||
style="@style/Widget.MaterialComponents.Button.OutlinedButton" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="16dp" | ||
android:layout_marginBottom="32dp" | ||
android:fontFamily="@font/montserrat_bold" | ||
android:paddingTop="8dp" | ||
android:paddingBottom="8dp" | ||
android:text="@string/title_create_an_account" | ||
android:textAllCaps="false" | ||
android:textColor="@color/main_color" | ||
android:textSize="18sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="@+id/til_password" | ||
app:layout_constraintHorizontal_bias="1.0" | ||
app:layout_constraintStart_toStartOf="@+id/til_password" | ||
app:layout_constraintTop_toBottomOf="@+id/mb_sign_ip" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
</ScrollView> |
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