-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from faiyaz103/bishal
Note Delete and Edit Functionality Added
- Loading branch information
Showing
8 changed files
with
262 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/com/example/notemania/editnoteactivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.example.notemania; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.activity.EdgeToEdge; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.core.graphics.Insets; | ||
import androidx.core.view.ViewCompat; | ||
import androidx.core.view.WindowInsetsCompat; | ||
|
||
public class editnoteactivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
EdgeToEdge.enable(this); | ||
setContentView(R.layout.activity_editnoteactivity); | ||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> { | ||
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()); | ||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom); | ||
return insets; | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.example.notemania; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.activity.EdgeToEdge; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
import androidx.core.graphics.Insets; | ||
import androidx.core.view.ViewCompat; | ||
import androidx.core.view.WindowInsetsCompat; | ||
|
||
public class notedetails extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
EdgeToEdge.enable(this); | ||
setContentView(R.layout.activity_notedetails); | ||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> { | ||
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()); | ||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom); | ||
return insets; | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".editnoteactivity"> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:layout_width="match_parent" | ||
android:layout_height="?attr/actionBarSize" | ||
android:id="@+id/toolbarforeditnote" | ||
android:background="@color/white"> | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<EditText | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingTop="12dp" | ||
android:textSize="20sp" | ||
android:textStyle="bold" | ||
android:textColor="@color/black" | ||
android:id="@+id/edittitleofnote" /> | ||
|
||
</RelativeLayout> | ||
|
||
</androidx.appcompat.widget.Toolbar> | ||
|
||
<EditText | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:textSize="15sp" | ||
android:background="#faf7f7" | ||
android:gravity="top|left" | ||
android:textColor="@color/black" | ||
android:layout_below="@id/toolbarforeditnote" | ||
android:padding="15dp" | ||
android:id="@+id/editcontentofnote" /> | ||
|
||
<com.google.android.material.floatingactionbutton.FloatingActionButton | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentEnd="true" | ||
android:layout_marginBottom="30dp" | ||
android:layout_marginEnd="30dp" | ||
android:id="@+id/saveeditnote" | ||
android:src="@drawable/update" | ||
app:backgroundTint="#A1F4FB" | ||
app:maxImageSize="56dp" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".notedetails"> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:layout_width="match_parent" | ||
android:layout_height="?attr/actionBarSize" | ||
android:id="@+id/toolbarfornotedetail" | ||
android:background="@color/white"> | ||
|
||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingTop="12dp" | ||
android:textSize="25sp" | ||
android:textStyle="bold" | ||
android:text="Title Displayed Here" | ||
android:textColor="@color/black" | ||
android:id="@+id/titleofnotedetail" /> | ||
|
||
</RelativeLayout> | ||
|
||
</androidx.appcompat.widget.Toolbar> | ||
|
||
<EditText | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:textSize="17sp" | ||
android:background="#faf7f7" | ||
android:gravity="top|left" | ||
android:textColor="@color/black" | ||
android:hint="Enter your note content here" | ||
android:layout_below="@id/toolbarfornotedetail" | ||
android:padding="15dp" | ||
android:id="@+id/contentofnotedetail" /> | ||
|
||
<com.google.android.material.floatingactionbutton.FloatingActionButton | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentEnd="true" | ||
android:layout_marginBottom="30dp" | ||
android:layout_marginEnd="30dp" | ||
android:id="@+id/gotoeditnote" | ||
android:src="@drawable/edit" | ||
app:backgroundTint="#A1F4FB" | ||
app:maxImageSize="56dp" /> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="purple_200">#FFBB86FC</color> | ||
<color name="purple_500">#FF6200EE</color> | ||
<color name="purple_700">#FF3700B3</color> | ||
<color name="teal_200">#FF03DAC5</color> | ||
<color name="teal_700">#FF018786</color> | ||
<color name="black">#FF000000</color> | ||
<color name="white">#FFFFFFFF</color> | ||
|
||
|
||
<color name="gray" >#cdc9c3</color> | ||
<color name="green" >#c6ebc9</color> | ||
<color name="lightgreen" >#cfffa5</color> | ||
<color name="skyblue" >#a7c5eb</color> | ||
<color name="pink" >#f3e6e3</color> | ||
<color name="color1" >#efbbcf</color> | ||
<color name="color2" >#d6b0b1</color> | ||
<color name="color3" >#ccf6c8</color> | ||
<color name="color4" >#ffe0ac</color> | ||
<color name="color5" >#e5cfe5</color> | ||
|
||
|
||
|
||
</resources> |