Skip to content

Commit

Permalink
Change Side Menu Item
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanWidjanarko committed Dec 16, 2021
1 parent 9c3d39a commit 9ce5c5b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
Binary file added app/src/main/res/drawable/history.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 5 additions & 17 deletions app/src/main/res/layout/activity_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:gravity="center_horizontal"
android:orientation="vertical"
android:layout_margin="5dp"
android:background="@color/bgc">

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

<TextView
android:id="@+id/text_view_name"
Expand All @@ -31,6 +32,7 @@
android:text="@string/username_dummy"
android:textSize="24sp"
android:textColor="@color/purple"
android:layout_marginTop="10dp"
android:layout_marginBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand All @@ -52,20 +54,6 @@
app:layout_constraintTop_toTopOf="parent"
/>

<TextView
android:id="@+id/text_view_history"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/see_shopping_history"
android:textSize="30sp"
android:textColor="@color/purple"
android:paddingTop="200dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>

</LinearLayout>

<!-- <com.google.android.material.bottomnavigation.BottomNavigationView-->
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/menu/navigation_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
android:title="@string/edit_profile" />

<item
android:id="@+id/item_add_payment_method"
android:icon="@drawable/add"
android:title="@string/add_payment_method_s" />
android:id="@+id/item_see_shopping_history"
android:icon="@drawable/history"
android:title="@string/see_shopping_history" />

<item
android:id="@+id/item_about"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@
<string name="pay">Pay</string>
<string name="checkout">Checkout</string>
<string name="end_of_the_list">- end of the list -</string>
<string name="profile_picture">Profile Picture</string>
</resources>

0 comments on commit 9ce5c5b

Please sign in to comment.