Skip to content

Commit

Permalink
✅ Added screenshots & changed theme to dark
Browse files Browse the repository at this point in the history
Signed-off-by: Sanju S <[email protected]>
  • Loading branch information
Spikeysanju committed Jul 4, 2020
1 parent 8f07eb7 commit 393d28d
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 18 deletions.
4 changes: 3 additions & 1 deletion app/src/main/res/drawable/bg_edittext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<solid android:color="@color/color_bg" />
<size android:height="50dp" />
<size android:width="50dp" />
<solid android:color="@color/card_bg" />
<corners android:radius="4dp" />
<padding android:left="16dp" />

Expand Down
12 changes: 8 additions & 4 deletions app/src/main/res/layout/add_notes_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:background="@color/colorPrimary"
tools:context=".UI.AddNotes.AddNotesFragment">


Expand All @@ -13,11 +14,11 @@
style="@style/EditTextStyle"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="308dp"
android:layout_marginTop="40dp"
android:background="@drawable/bg_edittext"
android:hint="@string/title_hint"
android:inputType="text"
android:textColor="@android:color/black"
android:textColorHint="@color/hint_color"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -27,10 +28,11 @@
android:id="@+id/notes_desc_et"
style="@style/EditTextStyle"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_height="wrap_content"
android:background="@drawable/bg_edittext"
android:hint="@string/desc_hint"
android:inputType="text"
android:inputType="textCapSentences|textMultiLine"
android:textColorHint="@color/hint_color"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/notes_title_et" />
Expand All @@ -43,6 +45,8 @@
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:text="@string/save_notes_btn"
android:backgroundTint="@color/colorAccent"
android:textColor="@color/colorPrimary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
Expand Down
11 changes: 7 additions & 4 deletions app/src/main/res/layout/fragment_notes_details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:fitsSystemWindows="true">


Expand All @@ -15,8 +16,7 @@
android:background="@drawable/bg_edittext"
android:hint="@string/title_hint"
android:inputType="text"
android:textColor="@android:color/black"
android:textSize="16sp"
android:textColorHint="@color/hint_color"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Expand All @@ -25,10 +25,11 @@
android:id="@+id/edit_notes_desc_et"
style="@style/EditTextStyle"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_height="wrap_content"
android:background="@drawable/bg_edittext"
android:hint="@string/desc_hint"
android:inputType="text"
android:inputType="textCapSentences|textMultiLine"
android:textColorHint="@color/hint_color"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/edit_notes_title_et" />
Expand All @@ -41,6 +42,8 @@
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:text="@string/save_notes_btn"
android:backgroundTint="@color/colorAccent"
android:textColor="@color/colorPrimary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/item_post_notes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
android:layout_height="wrap_content"
android:layout_margin="5dp"
app:cardCornerRadius="4dp"
app:cardElevation="4dp"
app:cardBackgroundColor="@android:color/white"
app:cardBackgroundColor="@color/card_bg"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand All @@ -21,7 +20,7 @@
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:textColor="@android:color/black"
android:textColor="@android:color/white"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -39,6 +38,7 @@
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:textSize="14sp"
android:textColor="#ddd"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.016"
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/notes_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
tools:context=".UI.AddNotes.Notes.NotesFragment">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/notes_rv"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
tools:listitem="@layout/item_post_notes" />

<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/btn_add_notes"
Expand Down
7 changes: 4 additions & 3 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#6200EE</color>
<color name="colorPrimaryDark">#3700B3</color>
<color name="colorPrimary">#121212</color>
<color name="colorPrimaryDark">#121212</color>
<color name="colorAccent">#03DAC5</color>
<color name="color_bg">#f3f7f9</color>
<color name="hint_color">#979797</color>
<color name="card_bg">#383e56</color>

</resources>
4 changes: 2 additions & 2 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<!-- Edit text style-->

<style name="EditTextStyle" parent="Widget.AppCompat.EditText">
<item name="android:textColor">@android:color/black</item>
<item name="android:textColor">@android:color/white</item>
<item name="background">@drawable/bg_edittext</item>
<item name="hintTextColor">@android:color/darker_gray</item>
<item name="android:textSize">16sp</item>
<item name="android:padding">12dp</item>
<item name="android:layout_marginStart">16sp</item>
<item name="android:layout_marginEnd">16sp</item>
<item name="android:layout_marginTop">16sp</item>
Expand Down
Binary file added screenshots/AddNotes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/Notzzapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 393d28d

Please sign in to comment.