Skip to content

Commit

Permalink
Add and Edit Font
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanWidjanarko committed Dec 17, 2021
1 parent 6b7f7f4 commit 22d0e94
Show file tree
Hide file tree
Showing 61 changed files with 165 additions and 82 deletions.
10 changes: 9 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added app/src/main/res/font/lato_black.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_black_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_bold_italic.ttf
Binary file not shown.
11 changes: 11 additions & 0 deletions app/src/main/res/font/lato_family.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font
android:fontStyle="normal"
android:fontWeight="400"
android:font="@font/lato_regular" />
<font
android:fontStyle="italic"
android:fontWeight="400"
android:font="@font/lato_italic" />
</font-family>
Binary file added app/src/main/res/font/lato_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_light.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_light_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_regular.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_thin.ttf
Binary file not shown.
Binary file added app/src/main/res/font/lato_thin_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_black.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_black_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_bold_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_extra_bold.ttf
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/font/nunito_extra_light.ttf
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions app/src/main/res/font/nunito_family.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font
android:fontStyle="normal"
android:fontWeight="400"
android:font="@font/nunito_regular" />
<font
android:fontStyle="italic"
android:fontWeight="400"
android:font="@font/nunito_italic" />
</font-family>
Binary file added app/src/main/res/font/nunito_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_light.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_light_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_medium.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_medium_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_regular.ttf
Binary file not shown.
Binary file added app/src/main/res/font/nunito_semi_bold.ttf
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/font/roboto_black.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_black_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_bold_italic.ttf
Binary file not shown.
11 changes: 11 additions & 0 deletions app/src/main/res/font/roboto_family.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font
android:fontStyle="normal"
android:fontWeight="400"
android:font="@font/roboto_regular" />
<font
android:fontStyle="italic"
android:fontWeight="400"
android:font="@font/roboto_italic" />
</font-family>
Binary file added app/src/main/res/font/roboto_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_light.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_light_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_medium.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_medium_italic.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_regular.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_thin.ttf
Binary file not shown.
Binary file added app/src/main/res/font/roboto_thin_italic.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:textSize="36sp"
android:textStyle="bold"
android:textColor="@color/purple"
android:fontFamily="@font/lato_family"
android:layout_margin="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand Down
9 changes: 8 additions & 1 deletion app/src/main/res/layout/activity_checkout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
android:text="@string/checkout"
android:textSize="20sp"
android:textColor="@color/white"
android:fontFamily="@font/nunito_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand All @@ -54,6 +55,7 @@
android:textSize="20sp"
android:textStyle="bold"
android:textColor="@color/white"
android:fontFamily="@font/nunito_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand Down Expand Up @@ -116,6 +118,7 @@
android:textSize="20sp"
android:textStyle="bold"
android:textColor="@color/white"
android:fontFamily="@font/nunito_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand Down Expand Up @@ -213,6 +216,7 @@
android:text="@string/grand_total"
android:textSize="18sp"
android:textColor="@color/white"
android:fontFamily="@font/nunito_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand All @@ -223,8 +227,9 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/grand_total_price_dummy"
android:textColor="@color/white"
android:textSize="18sp"
android:textColor="@color/white"
android:fontFamily="@font/nunito_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
Expand All @@ -238,6 +243,8 @@
android:layout_height="50dp"
android:text="@string/pay"
android:textColor="@color/bgc"
android:textStyle="bold"
android:fontFamily="@font/nunito_family"
android:layout_margin="15dp"
android:background="@drawable/rounded_button"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down
87 changes: 39 additions & 48 deletions app/src/main/res/layout/activity_edit_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,40 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bgc"
android:gravity="center"
android:orientation="vertical"
android:background="@color/bgc">
android:orientation="vertical">

<ImageView
android:id="@+id/image_view_profile"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_margin="5dp"
android:src="@drawable/profile"
android:contentDescription="@string/profile_picture" />
android:contentDescription="@string/profile_picture"
android:src="@drawable/profile" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/text_field_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:gravity="center"
>
android:gravity="center">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_text_username"
android:layout_width="300dp"
android:layout_height="35dp"
android:inputType="text"
android:hint="@string/username"
android:textColorHint="@color/grey"
android:autofillHints="Name"
android:background="@drawable/rounded_edittext"
android:hint="@string/username"
android:inputType="text"
android:paddingStart="10dp"
android:textColorHint="@color/grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:autofillHints="Name"
tools:ignore="RtlSymmetry"
/>
tools:ignore="RtlSymmetry" />

</com.google.android.material.textfield.TextInputLayout>

Expand All @@ -56,25 +54,23 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:gravity="center"
>
android:gravity="center">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_text_email"
android:layout_width="300dp"
android:layout_height="35dp"
android:inputType="textEmailAddress"
android:hint="@string/email"
android:textColorHint="@color/grey"
android:autofillHints="Email"
android:background="@drawable/rounded_edittext"
android:hint="@string/email"
android:inputType="textEmailAddress"
android:paddingStart="10dp"
android:textColorHint="@color/grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:autofillHints="Email"
tools:ignore="RtlSymmetry"
/>
tools:ignore="RtlSymmetry" />

</com.google.android.material.textfield.TextInputLayout>

Expand All @@ -83,25 +79,23 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:gravity="center"
>
android:gravity="center">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_text_password"
android:layout_width="300dp"
android:layout_height="35dp"
android:inputType="textPassword"
android:hint="@string/password"
android:textColorHint="@color/grey"
android:autofillHints="Password"
android:background="@drawable/rounded_edittext"
android:hint="@string/password"
android:inputType="textPassword"
android:paddingStart="10dp"
android:textColorHint="@color/grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:autofillHints="Password"
tools:ignore="RtlSymmetry"
/>
tools:ignore="RtlSymmetry" />

</com.google.android.material.textfield.TextInputLayout>

Expand All @@ -110,25 +104,23 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:gravity="center"
>
android:gravity="center">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_text_new_password"
android:layout_width="300dp"
android:layout_height="35dp"
android:inputType="textPassword"
android:hint="@string/new_password"
android:textColorHint="@color/grey"
android:autofillHints="New Password"
android:background="@drawable/rounded_edittext"
android:hint="@string/new_password"
android:inputType="textPassword"
android:paddingStart="10dp"
android:textColorHint="@color/grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:autofillHints="New Password"
tools:ignore="RtlSymmetry"
/>
tools:ignore="RtlSymmetry" />

</com.google.android.material.textfield.TextInputLayout>

Expand All @@ -137,41 +129,40 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:gravity="center"
>
android:gravity="center">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/edit_text_retype_password"
android:layout_width="300dp"
android:layout_height="35dp"
android:inputType="textPassword"
android:hint="@string/retype_password"
android:textColorHint="@color/grey"
android:autofillHints="Retype Password"
android:background="@drawable/rounded_edittext"
android:hint="@string/retype_password"
android:inputType="textPassword"
android:paddingStart="10dp"
android:textColorHint="@color/grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:autofillHints="Retype Password"
tools:ignore="RtlSymmetry"
/>
tools:ignore="RtlSymmetry" />

</com.google.android.material.textfield.TextInputLayout>

<Button
android:id="@+id/button_save"
android:layout_width="300dp"
android:layout_height="35dp"
android:text="@string/save"
android:textColor="@color/bgc"
android:layout_marginTop="25dp"
android:background="@drawable/rounded_button"
android:text="@string/save"
android:textStyle="bold"
android:textColor="@color/bgc"
android:fontFamily="@font/nunito_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
app:layout_constraintTop_toTopOf="parent" />

</LinearLayout>

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:textSize="36sp"
android:textStyle="bold"
android:textColor="@color/purple"
android:fontFamily="@font/lato_family"
android:layout_margin="25dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/activity_home_failed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:textSize="36sp"
android:textStyle="bold"
android:textColor="@color/pink"
android:fontFamily="@font/lato_family"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand All @@ -37,7 +38,7 @@
android:layout_height="250dp"
android:layout_margin="5dp"
android:src="@drawable/cross"
/>
android:contentDescription="@string/failed" />

<TextView
android:id="@+id/text_view_failed"
Expand All @@ -46,6 +47,7 @@
android:text="@string/click_here_to_retry"
android:textSize="20sp"
android:textColor="@color/pink"
android:fontFamily="@font/nunito_family"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/activity_home_success.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:textSize="36sp"
android:textStyle="bold"
android:textColor="@color/pink"
android:fontFamily="@font/lato_family"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand All @@ -37,7 +38,7 @@
android:layout_height="250dp"
android:layout_margin="5dp"
android:src="@drawable/checklist"
/>
android:contentDescription="@string/success" />

<TextView
android:id="@+id/text_view_success"
Expand All @@ -46,6 +47,7 @@
android:text="@string/happy_shopping"
android:textSize="20sp"
android:textColor="@color/pink"
android:fontFamily="@font/nunito_family"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand Down
Loading

0 comments on commit 22d0e94

Please sign in to comment.