Skip to content

Commit 558aa4b

Browse files
committed
Enhanced UI
->Updated ActionBar color & layout ->Changed background image ->Enhanced Nav bar icons -> Modified Recycle views
1 parent 9345cfc commit 558aa4b

File tree

12 files changed

+63
-29
lines changed

12 files changed

+63
-29
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"
4-
android:viewportHeight="24.0"
5-
android:viewportWidth="24.0">
5+
android:viewportWidth="24"
6+
android:viewportHeight="24">
7+
68
<path
79
android:fillColor="#ffffff"
8-
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
9-
</vector>
10+
android:pathData="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
11+
<path
12+
android:pathData="M0 0h24v24H0z" />
13+
</vector>
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
23
android:width="24dp"
34
android:height="24dp"
4-
android:viewportHeight="24.0"
5-
android:viewportWidth="24.0">
5+
android:viewportWidth="24"
6+
android:viewportHeight="24">
7+
68
<path
79
android:fillColor="#ffffff"
8-
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
9-
</vector>
10+
android:pathData="M12 22c1.1 0 2-0.9 2-2h-4c0 1.1 0.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-0.83-0.67-1.5-1.5-1.5s-1.5 0.67 -1.5 1.5v0.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z" />
11+
</vector>
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="24dp"
3-
android:height="24dp"
4-
android:viewportWidth="24.0"
5-
android:viewportHeight="24.0">
3+
android:width="24dp"
4+
android:height="24dp"
5+
android:viewportWidth="24"
6+
android:viewportHeight="24">
7+
68
<path
7-
android:pathData="M19,4L5,4c-1.11,0 -2,0.9 -2,2v12c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,6c0,-1.1 -0.89,-2 -2,-2zM19,18L5,18L5,8h14v10z"
8-
android:fillColor="#ffffff"/>
9-
</vector>
9+
android:pathData="M0 0h24v24H0z" />
10+
<path
11+
android:fillColor="#ffffff"
12+
android:pathData="M21 3H3c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h18c1.1 0 2-0.9 2-2V5c0-1.1-0.9-2-2-2zm0 16H3V5h10v4h8v10z" />
13+
</vector>

app/src/main/res/layout/activity_main.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:orientation="vertical"
9-
android:background="@drawable/dg"
9+
android:background="@drawable/dt"
10+
android:scaleType="centerCrop"
1011
tools:context="com.example.dhananjay.dailygoals.MainActivity">
1112

1213
<LinearLayout
1314
android:layout_width="match_parent"
1415
android:layout_height="match_parent"
1516
android:orientation="vertical">
1617
<TextView
17-
android:layout_width="wrap_content"
18+
android:layout_width="match_parent"
1819
android:layout_height="wrap_content"
20+
android:gravity="center"
1921
android:text="PLAN FOR"
2022
android:textSize="30sp"
2123
android:padding="20dp"
@@ -37,8 +39,9 @@
3739
</android.support.v7.widget.RecyclerView>
3840
</RelativeLayout>
3941
<TextView
40-
android:layout_width="wrap_content"
42+
android:layout_width="match_parent"
4143
android:layout_height="wrap_content"
44+
android:gravity="center"
4245
android:text="ONGOING..."
4346
android:textSize="30sp"
4447
android:padding="20dp"
@@ -60,8 +63,9 @@
6063
</android.support.v7.widget.RecyclerView>
6164
</RelativeLayout>
6265
<TextView
63-
android:layout_width="wrap_content"
66+
android:layout_width="match_parent"
6467
android:layout_height="wrap_content"
68+
android:gravity="center"
6569
android:text="COMPLETED/MISSED"
6670
android:textSize="30sp"
6771
android:padding="20dp"
@@ -83,8 +87,9 @@
8387
</android.support.v7.widget.RecyclerView>
8488
</RelativeLayout>
8589
<TextView
86-
android:layout_width="wrap_content"
90+
android:layout_width="match_parent"
8791
android:layout_height="wrap_content"
92+
android:gravity="center"
8893
android:text="ACHIEVEMENTS"
8994
android:textSize="30sp"
9095
android:padding="20dp"
@@ -109,7 +114,8 @@
109114
<android.support.design.widget.BottomNavigationView
110115
android:layout_width="match_parent"
111116
android:layout_height="60dp"
112-
android:layout_alignParentBottom="true"
117+
app:itemIconTint="@android:color/white"
118+
app:itemTextColor="@android:color/white"
113119
app:menu="@menu/navigation"/>
114120

115121
</LinearLayout>

app/src/main/res/layout/items.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
android:layout_height="200dp"
55
android:layout_margin="10dp"
66
xmlns:app="http://schemas.android.com/apk/res-auto"
7-
app:cardBackgroundColor="#ffffff">
7+
app:cardBackgroundColor="#f2fdff"
8+
android:foreground="?android:attr/selectableItemBackground"
9+
app:cardCornerRadius="12dp"
10+
app:cardElevation="8dp">
811

912
<LinearLayout
1013
android:layout_width="match_parent"

app/src/main/res/layout/items1.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
android:layout_height="200dp"
55
android:layout_margin="10dp"
66
xmlns:app="http://schemas.android.com/apk/res-auto"
7-
app:cardBackgroundColor="#ffffff">
7+
app:cardBackgroundColor="#e4ffd8"
8+
android:foreground="?android:attr/selectableItemBackground"
9+
app:cardCornerRadius="12dp"
10+
app:cardElevation="8dp">
811

912
<LinearLayout
1013
android:layout_width="match_parent"

app/src/main/res/layout/items2.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
android:layout_height="200dp"
55
android:layout_margin="10dp"
66
xmlns:app="http://schemas.android.com/apk/res-auto"
7-
app:cardBackgroundColor="#ffffff">
7+
app:cardBackgroundColor="#fff2f2"
8+
android:foreground="?android:attr/selectableItemBackground"
9+
app:cardCornerRadius="12dp"
10+
app:cardElevation="8dp">
811

912
<LinearLayout
1013
android:layout_width="match_parent"

0 commit comments

Comments
 (0)