Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Surya
committed
Feb 11, 2019
1 parent
e9eee11
commit 59e08c5
Showing
11 changed files
with
185 additions
and
90 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
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
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
28 changes: 15 additions & 13 deletions
28
app/src/main/java/com/androidwave/cleancode/ui/main/MainActivity.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
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 |
---|---|---|
@@ -1,78 +1,78 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center_horizontal" | ||
android:orientation="vertical" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
tools:context=".ui.login.LoginActivity"> | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:fillViewport="true" | ||
android:fitsSystemWindows="true" | ||
android:background="@color/colorPrimary"> | ||
|
||
<!-- Login progress --> | ||
<ProgressBar | ||
android:id="@+id/login_progress" | ||
style="?android:attr/progressBarStyleLarge" | ||
android:layout_width="wrap_content" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="8dp" | ||
android:visibility="gone" /> | ||
android:orientation="vertical" | ||
android:paddingLeft="24dp" | ||
android:paddingTop="56dp" | ||
android:paddingRight="24dp" | ||
android:gravity="center"> | ||
|
||
<ScrollView | ||
android:id="@+id/login_form" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
<ImageView | ||
android:layout_width="wrap_content" | ||
android:layout_height="72dp" | ||
android:layout_gravity="center_horizontal" | ||
android:layout_marginBottom="24dp" | ||
android:src="@drawable/logo_icon" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/email_login_form" | ||
<!-- Email Label --> | ||
<com.google.android.material.textfield.TextInputLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="8dp"> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
<EditText | ||
android:id="@+id/input_email" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<AutoCompleteTextView | ||
android:id="@+id/email" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="@string/prompt_email" | ||
android:inputType="textEmailAddress" | ||
android:maxLines="1" | ||
android:singleLine="true" /> | ||
android:layout_height="wrap_content" | ||
android:hint="Email" | ||
android:textColor="@color/white" | ||
android:inputType="textEmailAddress" /> | ||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
</com.google.android.material.textfield.TextInputLayout> | ||
<!-- Password Label --> | ||
<com.google.android.material.textfield.TextInputLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="8dp"> | ||
|
||
<com.google.android.material.textfield.TextInputLayout | ||
<EditText | ||
android:id="@+id/input_password" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<EditText | ||
android:id="@+id/password" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="@string/prompt_password" | ||
android:imeActionId="6" | ||
android:imeActionLabel="@string/action_sign_in_short" | ||
android:imeOptions="actionUnspecified" | ||
android:inputType="textPassword" | ||
android:maxLines="1" | ||
android:singleLine="true" /> | ||
android:layout_height="wrap_content" | ||
android:hint="Password" | ||
android:textColor="@color/white" | ||
android:inputType="textPassword" /> | ||
</com.google.android.material.textfield.TextInputLayout> | ||
|
||
</com.google.android.material.textfield.TextInputLayout> | ||
<androidx.appcompat.widget.AppCompatButton | ||
android:id="@+id/btn_login" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="24dp" | ||
android:layout_marginBottom="24dp" | ||
android:padding="12dp" | ||
android:textColor="@color/white" | ||
android:text="Login" /> | ||
|
||
<Button | ||
android:id="@+id/email_sign_in_button" | ||
style="?android:textAppearanceSmall" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="16dp" | ||
android:text="@string/action_sign_in" | ||
android:textStyle="bold" /> | ||
<TextView | ||
android:id="@+id/link_signup" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="24dp" | ||
android:gravity="center" | ||
android:textColor="@color/white" | ||
android:text="No account yet? Create one" | ||
android:textSize="16dip" /> | ||
|
||
</LinearLayout> | ||
</ScrollView> | ||
</LinearLayout> | ||
</LinearLayout> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#3F51B5</color> | ||
<color name="colorPrimaryDark">#303F9F</color> | ||
<color name="colorPrimary">#E43F3F</color> | ||
<color name="colorPrimaryDark">#E12929</color> | ||
<color name="colorAccent">#FF4081</color> | ||
<color name="white">#FFFFFF</color> | ||
<color name="black_effective">#2a2a2a</color> | ||
<color name="colorPrimaryDarker">#CC1D1D</color> | ||
<color name="accent">#FFFFFF</color> | ||
<color name="black">#000000</color> | ||
<color name="jet">#222222</color> | ||
<color name="oil">#333333</color> | ||
<color name="monsoon">#777777</color> | ||
<color name="jumbo">#888888</color> | ||
<color name="aluminum">#999999</color> | ||
<color name="base">#AAAAAA</color> | ||
<color name="iron">#CCCCCC</color> | ||
<color name="white">#FFFFFF</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
Oops, something went wrong.