Skip to content

Commit 393d28d

Browse files
committed
✅ Added screenshots & changed theme to dark
Signed-off-by: Sanju S <spikeysanju98@gmail.com>
1 parent 8f07eb7 commit 393d28d

File tree

9 files changed

+30
-18
lines changed

9 files changed

+30
-18
lines changed

app/src/main/res/drawable/bg_edittext.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="rectangle">
44

5-
<solid android:color="@color/color_bg" />
5+
<size android:height="50dp" />
6+
<size android:width="50dp" />
7+
<solid android:color="@color/card_bg" />
68
<corners android:radius="4dp" />
79
<padding android:left="16dp" />
810

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
77
android:fitsSystemWindows="true"
8+
android:background="@color/colorPrimary"
89
tools:context=".UI.AddNotes.AddNotesFragment">
910

1011

@@ -13,11 +14,11 @@
1314
style="@style/EditTextStyle"
1415
android:layout_width="match_parent"
1516
android:layout_height="50dp"
16-
android:layout_marginTop="308dp"
17+
android:layout_marginTop="40dp"
1718
android:background="@drawable/bg_edittext"
1819
android:hint="@string/title_hint"
1920
android:inputType="text"
20-
android:textColor="@android:color/black"
21+
android:textColorHint="@color/hint_color"
2122
android:textSize="16sp"
2223
app:layout_constraintEnd_toEndOf="parent"
2324
app:layout_constraintStart_toStartOf="parent"
@@ -27,10 +28,11 @@
2728
android:id="@+id/notes_desc_et"
2829
style="@style/EditTextStyle"
2930
android:layout_width="match_parent"
30-
android:layout_height="50dp"
31+
android:layout_height="wrap_content"
3132
android:background="@drawable/bg_edittext"
3233
android:hint="@string/desc_hint"
33-
android:inputType="text"
34+
android:inputType="textCapSentences|textMultiLine"
35+
android:textColorHint="@color/hint_color"
3436
app:layout_constraintEnd_toEndOf="parent"
3537
app:layout_constraintStart_toStartOf="parent"
3638
app:layout_constraintTop_toBottomOf="@+id/notes_title_et" />
@@ -43,6 +45,8 @@
4345
android:layout_marginEnd="16dp"
4446
android:layout_marginBottom="16dp"
4547
android:text="@string/save_notes_btn"
48+
android:backgroundTint="@color/colorAccent"
49+
android:textColor="@color/colorPrimary"
4650
app:layout_constraintBottom_toBottomOf="parent"
4751
app:layout_constraintEnd_toEndOf="parent"
4852
app:layout_constraintStart_toStartOf="parent" />

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:background="@color/colorPrimary"
67
android:fitsSystemWindows="true">
78

89

@@ -15,8 +16,7 @@
1516
android:background="@drawable/bg_edittext"
1617
android:hint="@string/title_hint"
1718
android:inputType="text"
18-
android:textColor="@android:color/black"
19-
android:textSize="16sp"
19+
android:textColorHint="@color/hint_color"
2020
app:layout_constraintEnd_toEndOf="parent"
2121
app:layout_constraintStart_toStartOf="parent"
2222
app:layout_constraintTop_toTopOf="parent" />
@@ -25,10 +25,11 @@
2525
android:id="@+id/edit_notes_desc_et"
2626
style="@style/EditTextStyle"
2727
android:layout_width="match_parent"
28-
android:layout_height="50dp"
28+
android:layout_height="wrap_content"
2929
android:background="@drawable/bg_edittext"
3030
android:hint="@string/desc_hint"
31-
android:inputType="text"
31+
android:inputType="textCapSentences|textMultiLine"
32+
android:textColorHint="@color/hint_color"
3233
app:layout_constraintEnd_toEndOf="parent"
3334
app:layout_constraintStart_toStartOf="parent"
3435
app:layout_constraintTop_toBottomOf="@+id/edit_notes_title_et" />
@@ -41,6 +42,8 @@
4142
android:layout_marginEnd="16dp"
4243
android:layout_marginBottom="16dp"
4344
android:text="@string/save_notes_btn"
45+
android:backgroundTint="@color/colorAccent"
46+
android:textColor="@color/colorPrimary"
4447
app:layout_constraintBottom_toBottomOf="parent"
4548
app:layout_constraintEnd_toEndOf="parent"
4649
app:layout_constraintStart_toStartOf="parent" />

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
android:layout_height="wrap_content"
88
android:layout_margin="5dp"
99
app:cardCornerRadius="4dp"
10-
app:cardElevation="4dp"
11-
app:cardBackgroundColor="@android:color/white"
10+
app:cardBackgroundColor="@color/card_bg"
1211
>
1312
<androidx.constraintlayout.widget.ConstraintLayout
1413
android:layout_width="match_parent"
@@ -21,7 +20,7 @@
2120
android:layout_marginStart="16dp"
2221
android:layout_marginTop="16dp"
2322
android:layout_marginEnd="16dp"
24-
android:textColor="@android:color/black"
23+
android:textColor="@android:color/white"
2524
android:textSize="18sp"
2625
android:textStyle="bold"
2726
app:layout_constraintEnd_toEndOf="parent"
@@ -39,6 +38,7 @@
3938
android:layout_marginEnd="16dp"
4039
android:layout_marginBottom="16dp"
4140
android:textSize="14sp"
41+
android:textColor="#ddd"
4242
app:layout_constraintBottom_toBottomOf="parent"
4343
app:layout_constraintEnd_toEndOf="parent"
4444
app:layout_constraintHorizontal_bias="0.016"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:background="@color/colorPrimary"
67
tools:context=".UI.AddNotes.Notes.NotesFragment">
78

89
<androidx.recyclerview.widget.RecyclerView
910
android:id="@+id/notes_rv"
1011
android:layout_width="match_parent"
11-
android:layout_height="match_parent" />
12+
android:layout_height="match_parent"
13+
tools:listitem="@layout/item_post_notes" />
1214

1315
<com.google.android.material.floatingactionbutton.FloatingActionButton
1416
android:id="@+id/btn_add_notes"

app/src/main/res/values/colors.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="colorPrimary">#6200EE</color>
4-
<color name="colorPrimaryDark">#3700B3</color>
3+
<color name="colorPrimary">#121212</color>
4+
<color name="colorPrimaryDark">#121212</color>
55
<color name="colorAccent">#03DAC5</color>
6-
<color name="color_bg">#f3f7f9</color>
6+
<color name="hint_color">#979797</color>
7+
<color name="card_bg">#383e56</color>
78

89
</resources>

app/src/main/res/values/styles.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<!-- Edit text style-->
1414

1515
<style name="EditTextStyle" parent="Widget.AppCompat.EditText">
16-
<item name="android:textColor">@android:color/black</item>
16+
<item name="android:textColor">@android:color/white</item>
1717
<item name="background">@drawable/bg_edittext</item>
18-
<item name="hintTextColor">@android:color/darker_gray</item>
1918
<item name="android:textSize">16sp</item>
19+
<item name="android:padding">12dp</item>
2020
<item name="android:layout_marginStart">16sp</item>
2121
<item name="android:layout_marginEnd">16sp</item>
2222
<item name="android:layout_marginTop">16sp</item>

screenshots/AddNotes.png

77.7 KB
Loading

screenshots/Notzzapp.png

102 KB
Loading

0 commit comments

Comments
 (0)