Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
My notepad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731301
My notepad
Commits
a04cc19a
Commit
a04cc19a
authored
Oct 31, 2020
by
9731301
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change custom drawer to drawer navigation and change background
parent
f631d444
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
326 additions
and
740 deletions
+326
-740
MainActivity.java
app/src/main/java/com/example/mynotepad/MainActivity.java
+63
-44
CustomMenu.java
app/src/main/java/com/example/mynotepad/Menu/CustomMenu.java
+0
-103
ArchivedNoesListFragment.java
...nuFeatures/AllArchivedNotes/ArchivedNoesListFragment.java
+9
-5
AllNotesListFragment.java
...mynotepad/MenuFeatures/AllNotes/AllNotesListFragment.java
+2
-2
CalenderNotesListFragment.java
...epad/MenuFeatures/Calender/CalenderNotesListFragment.java
+6
-7
DatePickerActivity.java
...MyCalenderRecyclerView/TimePicker/DatePickerActivity.java
+7
-5
notes_bg.jpg
app/src/main/res/drawable-v24/notes_bg.jpg
+0
-0
stones.jpg
app/src/main/res/drawable-v24/stones.jpg
+0
-0
background.xml
app/src/main/res/drawable/background.xml
+0
-10
bg_row.xml
app/src/main/res/drawable/bg_row.xml
+4
-4
bg_toolbar.xml
app/src/main/res/drawable/bg_toolbar.xml
+0
-0
folder.xml
app/src/main/res/drawable/folder.xml
+10
-0
main_bg_bright.jpg
app/src/main/res/drawable/main_bg_bright.jpg
+0
-0
main_bg_colored.jpg
app/src/main/res/drawable/main_bg_colored.jpg
+0
-0
main_bg_dark.jpg
app/src/main/res/drawable/main_bg_dark.jpg
+0
-0
noted_pics.xml
app/src/main/res/drawable/noted_pics.xml
+9
-0
program.xml
app/src/main/res/drawable/program.xml
+10
-0
activity_date_picker.xml
app/src/main/res/layout/activity_date_picker.xml
+0
-96
activity_main.xml
app/src/main/res/layout/activity_main.xml
+34
-52
custom_allnotes_item.xml
app/src/main/res/layout/custom_allnotes_item.xml
+3
-2
custom_menu.xml
app/src/main/res/layout/custom_menu.xml
+0
-157
custom_toolbar_options.xml
app/src/main/res/layout/custom_toolbar_options.xml
+1
-1
custom_voice_item.xml
app/src/main/res/layout/custom_voice_item.xml
+1
-1
fragment_all_notes_list.xml
app/src/main/res/layout/fragment_all_notes_list.xml
+56
-55
fragment_archived_noes_list.xml
app/src/main/res/layout/fragment_archived_noes_list.xml
+0
-51
fragment_calender_notes_list.xml
app/src/main/res/layout/fragment_calender_notes_list.xml
+0
-80
fragment_note.xml
app/src/main/res/layout/fragment_note.xml
+49
-62
fragment_record.xml
app/src/main/res/layout/fragment_record.xml
+1
-2
menu_header.xml
app/src/main/res/layout/menu_header.xml
+10
-0
bottom_nav_pic.xml
app/src/main/res/menu/bottom_nav_pic.xml
+1
-1
drawer_menu.xml
app/src/main/res/menu/drawer_menu.xml
+46
-0
strings.xml
app/src/main/res/values/strings.xml
+4
-0
No files found.
app/src/main/java/com/example/mynotepad/MainActivity.java
View file @
a04cc19a
package
com
.
example
.
mynotepad
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.drawerlayout.widget.DrawerLayout
;
import
androidx.room.Room
;
import
android.annotation.SuppressLint
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.Gravity
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.animation.Animation
;
import
android.view.animation.AnimationUtils
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
com.example.mynotepad.Menu
.CustomMenu
;
import
com.example.mynotepad.MenuFeatures.AllArchivedNotes.ArchivedNotesActivity
;
import
com.example.mynotepad.Menu
Features.AllNotes.AllNotesActivity
;
import
com.example.mynotepad.MenuFeatures.AllNotes.DataBase.NoteDataBase
;
import
com.example.mynotepad.MenuFeatures.Information.InfoClickListener
;
import
com.example.mynotepad.MenuFeatures.Information.Information
;
import
com.example.mynotepad.MenuFeatures.Calender.MyCalenderActivity
;
import
com.example.mynotepad.MenuFeatures.Pics.PicsActivity
;
import
com.example.mynotepad.MenuFeatures.Setting.SettingActivity
;
import
com.example.mynotepad.MenuFeatures.VoiceMassages.VoiceMassagesActivity
;
import
com.google.android.material.navigation.NavigationView
;
public
class
MainActivity
extends
AppCompatActivity
implements
View
.
OnClick
Listener
{
public
class
MainActivity
extends
AppCompatActivity
implements
NavigationView
.
OnNavigationItemSelected
Listener
{
private
ImageView
toolbarListImg
;
private
CustomMenu
customMenu
;
private
TextView
wlcTxt
;
private
Information
informationView
;
public
static
NoteDataBase
noteDataBase
;
@Override
...
...
@@ -33,52 +34,70 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
setWlcTxt
();
}
private
void
setWlcTxt
()
{
//ToDo with shared Prefrences in setting
//if () else()
wlcTxt
.
setText
(
"welcome :)"
);
wlcTxt
.
setTextSize
(
30
);
wlcTxt
.
setGravity
(
Gravity
.
CENTER
);
}
private
void
init
()
{
noteDataBase
=
Room
.
databaseBuilder
(
this
,
NoteDataBase
.
class
,
"RoomDb"
).
fallbackToDestructiveMigration
().
allowMainThreadQueries
().
build
();
customMenu
=
findViewById
(
R
.
id
.
mainListItem
);
customMenu
.
setVisibility
(
customMenu
.
GONE
);
wlcTxt
=
findViewById
(
R
.
id
.
wlcTxt
);
toolbarListImg
=
findViewById
(
R
.
id
.
toolbarList
);
informationView
=
findViewById
(
R
.
id
.
infoView
);
informationView
.
setVisibility
(
View
.
GONE
);
toolbarListImg
.
setOnClickListener
(
this
);
findViewById
(
R
.
id
.
main
).
setOnClickListener
(
this
);
customMenu
.
setOnClick
Listener
(
this
);
final
DrawerLayout
drawerLayout
=
findViewById
(
R
.
id
.
drawerLayout
);
NavigationView
navigationView
=
findViewById
(
R
.
id
.
main_menu
);
//menu drawer in ui
navigationView
.
setNavigationItemSelected
Listener
(
this
);
customMenu
.
setInfoClickListener
(
new
InfoClickListener
()
{
ImageView
toolbarListImg
=
findViewById
(
R
.
id
.
toolbarList
);
toolbarListImg
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@SuppressLint
(
"WrongConstant"
)
@Override
public
void
onInfoTvClicked
(
TextView
infoTv
)
{
informationView
.
setVisibility
(
View
.
VISIBLE
);
public
void
onClick
(
View
v
)
{
if
(!
drawerLayout
.
isDrawerOpen
(
Gravity
.
START
))
drawerLayout
.
openDrawer
(
Gravity
.
START
);
else
drawerLayout
.
closeDrawer
(
Gravity
.
END
);
}
});
}
private
void
setWlcTxt
()
{
//ToDo with shared Prefrences in setting
//if () else()
wlcTxt
.
setText
(
"welcome :)"
);
}
@SuppressLint
(
"NonConstantResourceId"
)
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
toolbarListImg
.
getId
()
||
customMenu
.
getId
()
==
view
.
getId
())
{
if
(
view
.
getId
()
==
toolbarListImg
.
getId
()){
//start animation
Animation
animOpen
=
AnimationUtils
.
loadAnimation
(
this
,
R
.
anim
.
menu_anim_open
);
customMenu
.
startAnimation
(
animOpen
);
public
boolean
onNavigationItemSelected
(
MenuItem
item
)
{
// Handle navigation view item clicks here.
int
id
=
item
.
getItemId
();
switch
(
id
)
{
case
R
.
id
.
allNotes
:{
startActivity
(
new
Intent
(
getApplicationContext
(),
AllNotesActivity
.
class
));
break
;
}
customMenu
.
setVisibility
(
customMenu
.
VISIBLE
);
informationView
.
setVisibility
(
View
.
GONE
);
}
else
if
(
R
.
id
.
main
==
view
.
getId
())
{
if
(
customMenu
.
getVisibility
()
==
View
.
VISIBLE
)
customMenu
.
startAnimation
(
AnimationUtils
.
loadAnimation
(
this
,
R
.
anim
.
menu_anim_close
));
customMenu
.
setVisibility
(
customMenu
.
GONE
);
informationView
.
setVisibility
(
View
.
GONE
);
case
R
.
id
.
favorites
:{
startActivity
(
new
Intent
(
getApplicationContext
(),
ArchivedNotesActivity
.
class
));
break
;
}
case
R
.
id
.
folders
:{
break
;
}
case
R
.
id
.
calender
:{
startActivity
(
new
Intent
(
getApplicationContext
(),
MyCalenderActivity
.
class
));
break
;
}
case
R
.
id
.
voiceMassages
:{
startActivity
(
new
Intent
(
getApplicationContext
(),
VoiceMassagesActivity
.
class
));
break
;
}
case
R
.
id
.
notedPics
:{
startActivity
(
new
Intent
(
getApplicationContext
(),
PicsActivity
.
class
));
break
;
}
case
R
.
id
.
programs
:{
}
case
R
.
id
.
setting
:{
startActivity
(
new
Intent
(
getApplicationContext
(),
SettingActivity
.
class
));
}
case
R
.
id
.
information
:{
}
}
return
true
;
}
}
\ No newline at end of file
app/src/main/java/com/example/mynotepad/Menu/CustomMenu.java
deleted
100644 → 0
View file @
f631d444
package
com
.
example
.
mynotepad
.
Menu
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.util.AttributeSet
;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
com.example.mynotepad.MenuFeatures.AllArchivedNotes.ArchivedNotesActivity
;
import
com.example.mynotepad.MenuFeatures.AllNotes.AllNotesActivity
;
import
com.example.mynotepad.MenuFeatures.Calender.MyCalenderActivity
;
import
com.example.mynotepad.MenuFeatures.Information.InfoClickListener
;
import
com.example.mynotepad.MenuFeatures.Setting.SettingActivity
;
import
com.example.mynotepad.MenuFeatures.VoiceMassages.VoiceMassagesActivity
;
import
com.example.mynotepad.R
;
import
com.google.android.material.snackbar.Snackbar
;
public
class
CustomMenu
extends
LinearLayout
implements
View
.
OnClickListener
{
private
View
rootView
;
private
TextView
settingTv
,
allNotesTv
,
archivedTv
,
calenderTv
,
informationTv
,
voiceMassagesTv
;
private
ImageView
img
;
private
InfoClickListener
infoClickListener
;
public
CustomMenu
(
Context
context
)
{
super
(
context
);
init
(
context
);
}
public
CustomMenu
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
init
(
context
);
}
private
void
init
(
Context
context
)
{
rootView
=
inflate
(
context
,
R
.
layout
.
custom_menu
,
this
);
settingTv
=
findViewById
(
R
.
id
.
settingTxt
);
allNotesTv
=
findViewById
(
R
.
id
.
allNotesTxt
);
archivedTv
=
findViewById
(
R
.
id
.
archivedTxt
);
calenderTv
=
findViewById
(
R
.
id
.
calenderTxt
);
informationTv
=
findViewById
(
R
.
id
.
infoTxt
);
voiceMassagesTv
=
findViewById
(
R
.
id
.
voiceTxt
);
img
=
findViewById
(
R
.
id
.
imageView5
);
settingTv
.
setOnClickListener
(
this
);
allNotesTv
.
setOnClickListener
(
this
);
archivedTv
.
setOnClickListener
(
this
);
calenderTv
.
setOnClickListener
(
this
);
informationTv
.
setOnClickListener
(
this
);
voiceMassagesTv
.
setOnClickListener
(
this
);
img
.
setOnClickListener
(
this
);
}
@Override
public
void
onClick
(
View
view
)
{
if
(
view
.
getId
()
==
settingTv
.
getId
())
{
showSetting
();
}
else
if
(
view
.
getId
()
==
allNotesTv
.
getId
())
{
showAllNotes
();
}
else
if
(
view
.
getId
()
==
archivedTv
.
getId
())
{
showArchived
();
}
else
if
(
view
.
getId
()
==
calenderTv
.
getId
())
{
showCalender
();
}
else
if
(
view
.
getId
()
==
informationTv
.
getId
())
{
infoClickListener
.
onInfoTvClicked
(
informationTv
);
}
else
if
(
view
.
getId
()
==
voiceMassagesTv
.
getId
())
{
showVoiceMassages
();
}
else
{
Snackbar
.
make
(
view
,
"this is zahra's app ;)"
,
Snackbar
.
LENGTH_LONG
).
setAction
(
"Action"
,
null
).
show
();
}
}
private
void
showVoiceMassages
()
{
Intent
intent
=
new
Intent
(
getContext
(),
VoiceMassagesActivity
.
class
);
getContext
().
startActivity
(
intent
);
}
private
void
showCalender
()
{
Intent
intent
=
new
Intent
(
getContext
(),
MyCalenderActivity
.
class
);
getContext
().
startActivity
(
intent
);
}
private
void
showArchived
()
{
Intent
newIntent
=
new
Intent
(
getContext
(),
ArchivedNotesActivity
.
class
);
getContext
().
startActivity
(
newIntent
);
}
private
void
showSetting
()
{
Intent
newIntent
=
new
Intent
(
getContext
(),
SettingActivity
.
class
);
getContext
().
startActivity
(
newIntent
);
}
private
void
showAllNotes
()
{
Intent
newIntent
=
new
Intent
(
getContext
(),
AllNotesActivity
.
class
);
getContext
().
startActivity
(
newIntent
);
}
public
void
setInfoClickListener
(
InfoClickListener
infoClickListener
)
{
this
.
infoClickListener
=
infoClickListener
;
}
}
app/src/main/java/com/example/mynotepad/MenuFeatures/AllArchivedNotes/ArchivedNoesListFragment.java
View file @
a04cc19a
...
...
@@ -26,6 +26,7 @@ import com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.TimePi
import
com.example.mynotepad.MenuFeatures.CustomToolbarOption
;
import
com.example.mynotepad.MenuFeatures.CustomToolbarOptionListener
;
import
com.example.mynotepad.R
;
import
com.google.android.material.floatingactionbutton.FloatingActionButton
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -34,7 +35,7 @@ import static com.example.mynotepad.MainActivity.noteDataBase;
public
class
ArchivedNoesListFragment
extends
Fragment
{
private
FloatingActionButton
addNoteButton
;
private
CustomToolbarOption
customToolbarOption
;
private
FrameLayout
allNoteToolBar
;
private
RecyclerView
recyclerView
;
...
...
@@ -50,7 +51,7 @@ public class ArchivedNoesListFragment extends Fragment {
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
// Inflate the layout for this fragment
return
inflater
.
inflate
(
R
.
layout
.
fragment_a
rchived_no
es_list
,
container
,
false
);
return
inflater
.
inflate
(
R
.
layout
.
fragment_a
ll_not
es_list
,
container
,
false
);
}
@Override
...
...
@@ -63,15 +64,18 @@ public class ArchivedNoesListFragment extends Fragment {
// get data from database
setAllNoteListAndTitles
();
setAllDateNoteListAndTitles
();
customToolbarOption
=
view
.
findViewById
(
R
.
id
.
customToolbarOption
2
);
customToolbarOption
=
view
.
findViewById
(
R
.
id
.
customToolbarOption
);
customToolbarOption
.
setVisibility
(
View
.
GONE
);
allNoteToolBar
=
view
.
findViewById
(
R
.
id
.
allNotesToolbar2
);
allNoteToolBar
=
view
.
findViewById
(
R
.
id
.
toolbar
);
allNoteToolBar
.
setEnabled
(
false
);
navController
=
Navigation
.
findNavController
(
view
);
//hide add button in favourite list
addNoteButton
=
view
.
findViewById
(
R
.
id
.
addButton
);
addNoteButton
.
setVisibility
(
View
.
GONE
);
// show list with recycler view
recyclerView
=
view
.
findViewById
(
R
.
id
.
recyclerView
2
);
recyclerView
=
view
.
findViewById
(
R
.
id
.
recyclerView
);
LinearLayoutManager
linearLayoutManager
=
new
LinearLayoutManager
(
getContext
(),
LinearLayoutManager
.
VERTICAL
,
false
);
myarchivedAdaptor
=
new
MyArchivedAdaptor
(
myNotes
,
myDates
);
recyclerView
.
setAdapter
(
myarchivedAdaptor
);
...
...
app/src/main/java/com/example/mynotepad/MenuFeatures/AllNotes/AllNotesListFragment.java
View file @
a04cc19a
...
...
@@ -62,9 +62,9 @@ public class AllNotesListFragment extends Fragment {
customToolbarOption
=
view
.
findViewById
(
R
.
id
.
customToolbarOption
);
customToolbarOption
.
setVisibility
(
View
.
GONE
);
allNoteToolBar
=
view
.
findViewById
(
R
.
id
.
allNotesT
oolbar
);
allNoteToolBar
=
view
.
findViewById
(
R
.
id
.
t
oolbar
);
allNoteToolBar
.
setEnabled
(
false
);
addNoteButton
=
view
.
findViewById
(
R
.
id
.
add
Note
Button
);
addNoteButton
=
view
.
findViewById
(
R
.
id
.
addButton
);
navController
=
Navigation
.
findNavController
(
view
);
// show list with recycler view
...
...
app/src/main/java/com/example/mynotepad/MenuFeatures/Calender/CalenderNotesListFragment.java
View file @
a04cc19a
...
...
@@ -18,7 +18,6 @@ import android.view.ViewGroup;
import
android.widget.FrameLayout
;
import
android.widget.Toast
;
import
com.example.mynotepad.MenuFeatures.AllNotes.DataBase.DateEntity
;
import
com.example.mynotepad.MenuFeatures.AllNotes.Note.NoteFragment
;
import
com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.MyCalenderAdaptor
;
import
com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.OnCalenderItemClickListener
;
import
com.example.mynotepad.MenuFeatures.Calender.MyCalenderRecyclerView.TimePicker.DatePickerActivity
;
...
...
@@ -49,7 +48,7 @@ public class CalenderNotesListFragment extends Fragment {
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
// Inflate the layout for this fragment
return
inflater
.
inflate
(
R
.
layout
.
fragment_
calender
_notes_list
,
container
,
false
);
return
inflater
.
inflate
(
R
.
layout
.
fragment_
all
_notes_list
,
container
,
false
);
}
@Override
...
...
@@ -73,17 +72,17 @@ public class CalenderNotesListFragment extends Fragment {
private
void
init
(
View
view
)
{
setAllDateNoteListAndTitles
();
addDateBtn
=
view
.
findViewById
(
R
.
id
.
add
Date
Button
);
addDateBtn
=
view
.
findViewById
(
R
.
id
.
addButton
);
customToolbarOption
=
view
.
findViewById
(
R
.
id
.
c
alenderC
ustomToolbarOption
);
customToolbarOption
=
view
.
findViewById
(
R
.
id
.
customToolbarOption
);
customToolbarOption
.
setVisibility
(
View
.
GONE
);
calenderToolbar
=
view
.
findViewById
(
R
.
id
.
calenderT
oolbar
);
calenderToolbar
=
view
.
findViewById
(
R
.
id
.
t
oolbar
);
calenderToolbar
.
setEnabled
(
false
);
addDateBtn
=
view
.
findViewById
(
R
.
id
.
add
Date
Button
);
addDateBtn
=
view
.
findViewById
(
R
.
id
.
addButton
);
navController
=
Navigation
.
findNavController
(
view
);
// show list with recycler view
recyclerView
=
view
.
findViewById
(
R
.
id
.
calenderR
ecyclerView
);
recyclerView
=
view
.
findViewById
(
R
.
id
.
r
ecyclerView
);
LinearLayoutManager
linearLayoutManager
=
new
LinearLayoutManager
(
getContext
(),
LinearLayoutManager
.
VERTICAL
,
false
);
myAdaptor
=
new
MyCalenderAdaptor
(
myDates
);
recyclerView
.
setAdapter
(
myAdaptor
);
...
...
app/src/main/java/com/example/mynotepad/MenuFeatures/Calender/MyCalenderRecyclerView/TimePicker/DatePickerActivity.java
View file @
a04cc19a
...
...
@@ -7,6 +7,7 @@ import android.app.AlertDialog;
import
android.content.DialogInterface
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.EditText
;
import
android.widget.TextView
;
import
android.widget.Toast
;
...
...
@@ -25,22 +26,23 @@ import static com.example.mynotepad.MainActivity.noteDataBase;
public
class
DatePickerActivity
extends
AppCompatActivity
{
private
DateEntity
dateEntity
;
private
TextView
chosenDate
,
description
;
private
EditText
chosenDate
;
private
TextView
description
;
private
Date
mDate
;
private
FloatingActionButton
back
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_date_picker
);
setContentView
(
R
.
layout
.
fragment_note
);
init
();
showTimePicker
();
}
private
void
init
()
{
chosenDate
=
findViewById
(
R
.
id
.
chosenDat
e
);
description
=
findViewById
(
R
.
id
.
description
);
back
=
findViewById
(
R
.
id
.
calenderB
ackBtn
);
chosenDate
=
findViewById
(
R
.
id
.
myTitl
e
);
description
=
findViewById
(
R
.
id
.
textBody
);
back
=
findViewById
(
R
.
id
.
b
ackBtn
);
back
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
...
...
app/src/main/res/drawable-v24/notes_bg.jpg
0 → 100644
View file @
a04cc19a
47.6 KB
app/src/main/res/drawable-v24/stones.jpg
deleted
100644 → 0
View file @
f631d444
7.93 KB
app/src/main/res/drawable/background.xml
deleted
100644 → 0
View file @
f631d444
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
android:shape="rectangle">
<solid
android:color=
"#83B5DD"
/>
<stroke
android:width=
"15dp"
android:color=
"#9983B5DD"
/>
<corners
android:radius=
"0dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/
row_bg
.xml
→
app/src/main/res/drawable/
bg_row
.xml
View file @
a04cc19a
...
...
@@ -2,10 +2,10 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"#
83B5DD
"
/>
<solid
android:color=
"#
A0B9Fc
"
/>
<stroke
android:width=
"
15
dp"
android:color=
"#
4883B5DD
"
/>
<corners
android:radius=
"0dp"
/>
android:width=
"
20
dp"
android:color=
"#
16A0B9FC
"
/>
<corners
android:radius=
"
2
0dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/
all_notes_bg
.xml
→
app/src/main/res/drawable/
bg_toolbar
.xml
View file @
a04cc19a
File moved
app/src/main/res/drawable/folder.xml
0 → 100644
View file @
a04cc19a
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24"
android:viewportHeight=
"24"
android:tint=
"?attr/colorControlNormal"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z"
/>
</vector>
app/src/main/res/drawable/main_bg_bright.jpg
0 → 100644
View file @
a04cc19a
50.6 KB
app/src/main/res/drawable/main_bg_colored.jpg
0 → 100644
View file @
a04cc19a
59.7 KB
app/src/main/res/drawable/main_bg_dark.jpg
0 → 100644
View file @
a04cc19a
57.9 KB
app/src/main/res/drawable/noted_pics.xml
0 → 100644
View file @
a04cc19a
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24.0"
android:viewportHeight=
"24.0"
>
<path
android:fillColor=
"#FF000000"
android:pathData=
"M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z"
/>
</vector>
app/src/main/res/drawable/program.xml
0 → 100644
View file @
a04cc19a
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportWidth=
"24"
android:viewportHeight=
"24"
android:tint=
"?attr/colorControlNormal"
>
<path
android:fillColor=
"@android:color/white"
android:pathData=
"M19,2h-4.18C14.4,0.84 13.3,0 12,0c-1.3,0 -2.4,0.84 -2.82,2L5,2c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2L21,4c0,-1.1 -0.9,-2 -2,-2zM12,2c0.55,0 1,0.45 1,1s-0.45,1 -1,1 -1,-0.45 -1,-1 0.45,-1 1,-1zM19,20L5,20L5,4h2v3h10L17,4h2v16z"
/>
</vector>
app/src/main/res/layout/activity_date_picker.xml
deleted
100644 → 0
View file @
f631d444
<?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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".MenuFeatures.Calender.MyCalenderRecyclerView.TimePicker.DatePickerActivity"
>
<ImageView
android:id=
"@+id/img"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_marginTop=
"0dp"
android:scaleType=
"fitXY"
app:srcCompat=
"@drawable/index"
/>
<TextView
android:id=
"@+id/date1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/img"
android:layout_marginStart=
"50dp"
android:layout_marginLeft=
"50dp"
android:layout_marginTop=
"60dp"
android:background=
"@drawable/background"
android:enabled=
"false"
android:text=
"@string/date"
android:textColor=
"#000000"
android:textSize=
"30dp"
/>
<TextView
android:id=
"@+id/chosenDate"
android:layout_width=
"219dp"
android:layout_height=
"wrap_content"
android:layout_alignBottom=
"@+id/date1"
android:layout_marginLeft=
"20dp"
android:layout_marginBottom=
"0dp"
android:layout_toRightOf=
"@+id/date1"
android:background=
"@drawable/title_background"
android:enabled=
"false"
android:gravity=
"center"
android:lines=
"1"
android:textColor=
"#000000"
android:textSize=
"30dp"
/>
<TextView
android:id=
"@+id/date2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/chosenDate"
android:layout_marginStart=
"50dp"
android:layout_marginLeft=
"50dp"
android:layout_marginTop=
"60dp"
android:background=
"@drawable/background"
android:enabled=
"false"
android:text=
"@string/description"
android:textColor=
"#000000"
android:textSize=
"30dp"
/>
<LinearLayout
android:layout_width=
"300dp"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/date2"
android:layout_centerHorizontal=
"true"
android:layout_marginLeft=
"50dp"
android:layout_marginTop=
"21dp"
android:background=
"@drawable/title_background"
>
<EditText
android:id=
"@+id/description"
android:layout_width=
"260dp"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:gravity=
"top"
android:lines=
"9"
android:textColor=
"#000000"
android:layout_marginStart=
"20dp"
/>
</LinearLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id=
"@+id/calenderBackBtn"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"30dp"
android:layout_marginBottom=
"30dp"
android:src=
"@drawable/ic_baseline_keyboard_backspace_24"
app:backgroundTint=
"#DF4141"
android:layout_marginEnd=
"30dp"
android:layout_alignParentEnd=
"true"
/>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/activity_main.xml
View file @
a04cc19a
<?xml version="1.0" encoding="utf-8"?>
<
Frame
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
androidx.drawerlayout.widget.Drawer
Layout
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/drawerLayout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/main_bg_bright"
android:orientation=
"vertical"
>
<
Relative
Layout
<
androidx.constraintlayout.widget.Constraint
Layout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<TextView
android:id=
"@+id/wlcTxt"
android:layout_width=
"0dp"
android:layout_height=
"80dp"
android:layout_centerHorizontal=
"true"
android:textSize=
"30dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"@+id/toolBarId"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/toolBarId"
android:gravity=
"center"
android:textColor=
"#0652DD"
android:textStyle=
"bold"
/>
<Toolbar
android:id=
"@+id/toolBarId"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:background=
"#457FAE"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/bg_toolbar"
app:layout_constraintTop_toTopOf=
"parent"
tools:targetApi=
"lollipop"
>
<ImageView
android:id=
"@+id/toolbarList"
android:layout_width=
"
50dp
"
android:layout_height=
"
50dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"
match_parent
"
android:adjustViewBounds=
"true"
android:src=
"@drawable/list"
/>
</Toolbar>
<RelativeLayout
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/toolBarId"
android:layout_alignParentEnd=
"true"
android:layout_alignParentRight=
"true"
android:layout_marginTop=
"-6dp"
android:layout_marginEnd=
"-2dp"
android:layout_marginRight=
"-2dp"
android:background=
"@drawable/simple_color"
>
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"356dp"
android:layout_height=
"271dp"
android:layout_centerInParent=
"true"
android:src=
"@drawable/stones"
/>
<TextView
android:id=
"@+id/wlcTxt"
android:layout_centerHorizontal=
"true"
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.navigation.NavigationView
android:id=
"@+id/main_menu"
android:layout_width=
"wrap_content"
android:layout_height=
"73dp"
android:layout_above=
"@+id/imageView"
android:layout_marginBottom=
"30dp"
/>
</RelativeLayout>
</RelativeLayout>
<com.example.mynotepad.Menu.CustomMenu
android:id=
"@+id/mainListItem"
android:layout_width=
"270dp"
android:layout_height=
"match_parent"
android:layout_alignParentTop=
"true"
android:layout_marginTop=
"2dp"
/>
<com.example.mynotepad.MenuFeatures.Information.Information
android:id=
"@+id/infoView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
</FrameLayout>
\ No newline at end of file
android:layout_gravity=
"start"
android:fitsSystemWindows=
"true"
android:background=
"#F083B5DD"
app:headerLayout=
"@layout/menu_header"
app:menu=
"@menu/drawer_menu"
/>
</androidx.drawerlayout.widget.DrawerLayout>
\ No newline at end of file
app/src/main/res/layout/custom_allnotes_item.xml
View file @
a04cc19a
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"1
0
0dp"
android:layout_height=
"1
6
0dp"
android:orientation=
"vertical"
android:background=
"@drawable/
row_bg
"
>
android:background=
"@drawable/
bg_row
"
>
<TextView
android:id=
"@+id/titleTv"
...
...
@@ -14,6 +14,7 @@
android:layout_marginRight=
"15dp"
android:layout_marginTop=
"5dp"
android:text=
"title"
android:padding=
"5dp"
android:textColor=
"#000A43"
android:textSize=
"20dp"
/>
...
...
app/src/main/res/layout/custom_menu.xml
deleted
100644 → 0
View file @
f631d444
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:layout_width=
"260dp"
android:layout_height=
"match_parent"
android:background=
"@drawable/background"
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/imageView5"
android:layout_width=
"match_parent"
android:layout_height=
"51dp"
android:scaleType=
"fitXY"
app:srcCompat=
"@drawable/index"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/imagesLinearLayout"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<ImageView
android:id=
"@+id/imageView2"
android:layout_width=
"22dp"
android:layout_height=
"22dp"
android:layout_marginLeft=
"18dp"
android:layout_marginTop=
"12dp"
android:src=
"@drawable/notes"
/>
<ImageView
android:id=
"@+id/imageView3"
android:layout_width=
"22dp"
android:layout_height=
"22dp"
android:layout_marginLeft=
"18dp"
android:layout_marginTop=
"15dp"
android:src=
"@drawable/black_star"
/>
<ImageView
android:id=
"@+id/voiceImg"
android:layout_width=
"22dp"
android:layout_height=
"22dp"
android:layout_marginLeft=
"18dp"
android:layout_marginTop=
"15dp"
android:src=
"@drawable/voice"
/>
<ImageView
android:id=
"@+id/calenderImg"
android:layout_width=
"22dp"
android:layout_height=
"22dp"
android:layout_marginLeft=
"18dp"
android:layout_marginTop=
"15dp"
android:src=
"@drawable/calender"
/>
<ImageView
android:id=
"@+id/imageView4"
android:layout_width=
"22dp"
android:layout_height=
"22dp"
android:layout_marginLeft=
"18dp"
android:layout_marginTop=
"15dp"
android:src=
"@drawable/setting"
/>
<ImageView
android:id=
"@+id/infoImg"
android:layout_width=
"22dp"
android:layout_height=
"22dp"
android:layout_marginLeft=
"18dp"
android:layout_marginTop=
"17dp"
android:src=
"@drawable/information"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/allNotesTxt"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:layout_weight=
"5"
android:gravity=
"center_vertical"
android:text=
"@string/all_notes"
android:textSize=
"20dp"
/>
<TextView
android:id=
"@+id/archivedTxt"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:layout_weight=
"6"
android:gravity=
"center_vertical"
android:text=
"@string/archived"
android:textSize=
"20dp"
/>
<TextView
android:id=
"@+id/voiceTxt"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:gravity=
"center_vertical"
android:text=
"@string/voice_massages"
android:textSize=
"20dp"
/>
<TextView
android:id=
"@+id/calenderTxt"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:gravity=
"center_vertical"
android:text=
"@string/calender"
android:textSize=
"20dp"
/>
<TextView
android:id=
"@+id/settingTxt"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:gravity=
"center_vertical"
android:text=
"@string/setting"
android:textSize=
"20dp"
/>
<TextView
android:id=
"@+id/infoTxt"
android:layout_width=
"193dp"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"20dp"
android:layout_marginTop=
"10dp"
android:gravity=
"center_vertical"
android:text=
"@string/information"
android:textSize=
"20dp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/custom_toolbar_options.xml
View file @
a04cc19a
...
...
@@ -2,7 +2,7 @@
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:background=
"@drawable/
all_notes_bg
"
android:background=
"@drawable/
bg_toolbar
"
android:orientation=
"horizontal"
>
...
...
app/src/main/res/layout/custom_voice_item.xml
View file @
a04cc19a
...
...
@@ -2,7 +2,7 @@
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"80dp"
android:background=
"@drawable/
row_bg
"
>
android:background=
"@drawable/
bg_row
"
>
<FrameLayout
android:id=
"@+id/start_stopBtn"
...
...
app/src/main/res/layout/fragment_all_notes_list.xml
View file @
a04cc19a
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto
"
android:background=
"@drawable/main_bg_bright
"
android:orientation=
"vertical"
tools:context=
".MenuFeatures.AllNotes.AllNotesListFragment"
>
...
...
@@ -13,7 +14,7 @@
android:layout_height=
"wrap_content"
>
<FrameLayout
android:id=
"@+id/allNotesT
oolbar"
android:id=
"@+id/t
oolbar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
...
...
@@ -42,7 +43,7 @@
</FrameLayout>
<FrameLayout
android:layout_width=
"wrap_cont
ent"
android:layout_width=
"match_par
ent"
android:layout_height=
"match_parent"
>
<RelativeLayout
...
...
@@ -58,21 +59,21 @@
tools:layout_editor_absoluteY=
"1dp"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id=
"@+id/addNote
Button"
android:id=
"@+id/add
Button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentEnd=
"true"
android:layout_alignParentRight=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"30
dp"
android:layout_marginRight=
"30
dp"
android:layout_marginRight=
"16
dp"
android:layout_marginBottom=
"16
dp"
android:clickable=
"true"
android:focusable=
"true"
android:src=
"@drawable/add"
app:backgroundTint=
"#5266D5
"
app:backgroundTint=
"#EA2027
"
tools:layout_editor_absoluteX=
"310dp"
tools:layout_editor_absoluteY=
"612dp"
android:layout_alignParentEnd=
"true"
android:focusable=
"true"
/>
tools:layout_editor_absoluteY=
"612dp"
/>
</RelativeLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>
app/src/main/res/layout/fragment_archived_noes_list.xml
deleted
100644 → 0
View file @
f631d444
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
tools:context=
".MenuFeatures.AllArchivedNotes.ArchivedNoesListFragment"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<FrameLayout
android:id=
"@+id/allNotesToolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<ImageView
android:id=
"@+id/imageView72"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:scaleType=
"fitXY"
app:srcCompat=
"@drawable/index"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10dp"
android:enabled=
"false"
android:text=
"@string/archived"
android:textColor=
"#02091E"
android:textSize=
"26dp"
/>
</FrameLayout>
<com.example.mynotepad.MenuFeatures.CustomToolbarOption
android:id=
"@+id/customToolbarOption2"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
/>
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recyclerView2"
android:layout_width=
"409dp"
android:layout_height=
"match_parent"
android:background=
"#4883B5DD"
tools:layout_editor_absoluteX=
"1dp"
tools:layout_editor_absoluteY=
"1dp"
/>
</LinearLayout>
app/src/main/res/layout/fragment_calender_notes_list.xml
deleted
100644 → 0
View file @
f631d444
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
tools:context=
".MenuFeatures.Calender.CalenderNotesListFragment"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<FrameLayout
android:id=
"@+id/calenderToolbar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<ImageView
android:id=
"@+id/imageView7"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:scaleType=
"fitXY"
app:srcCompat=
"@drawable/index"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"10dp"
android:enabled=
"false"
android:text=
"@string/calender"
android:textColor=
"#02091E"
android:textSize=
"26dp"
android:layout_marginStart=
"10dp"
tools:ignore=
"SpUsage"
/>
</FrameLayout>
<com.example.mynotepad.MenuFeatures.CustomToolbarOption
android:id=
"@+id/calenderCustomToolbarOption"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
/>
</FrameLayout>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:ignore=
"UselessParent"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/calenderRecyclerView"
android:layout_width=
"409dp"
android:layout_height=
"match_parent"
android:background=
"#4883B5DD"
tools:layout_editor_absoluteX=
"1dp"
tools:layout_editor_absoluteY=
"1dp"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id=
"@+id/addDateButton"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginRight=
"30dp"
android:layout_marginBottom=
"30dp"
android:clickable=
"true"
android:src=
"@drawable/add"
app:backgroundTint=
"#5266D5"
tools:layout_editor_absoluteX=
"310dp"
tools:layout_editor_absoluteY=
"612dp"
tools:ignore=
"KeyboardInaccessibleWidget,RtlHardcoded"
/>
</RelativeLayout>
</FrameLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_note.xml
View file @
a04cc19a
<?xml version="1.0" encoding="utf-8"?>
<
Relative
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
androidx.constraintlayout.widget.Constraint
Layout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
android:background=
"@drawable/notes_bg"
android:orientation=
"vertical"
android:visibility=
"visible"
>
<RelativeLayout
android:id=
"@+id/myTitleParent"
android:layout_width=
"wrap_content"
android:layout_height=
"50dp"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"5dp"
android:layout_marginRight=
"10dp"
android:background=
"@drawable/title_background"
>
<EditText
android:id=
"@+id/myTitle"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_width=
"311dp"
android:layout_height=
"48dp"
android:layout_marginTop=
"52dp"
android:hint=
" title"
android:textSize=
"24dp"
/>
</RelativeLayout>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/myTitleParent2"
android:layout_below=
"@id/myTitleParent"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignTop=
"@+id/myTitleParent"
android:layout_marginLeft=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginRight=
"10dp"
android:layout_marginBottom=
"10dp"
android:background=
"@drawable/description_backgroung"
android:gravity=
"top"
>
android:textColor=
"@color/black"
android:textSize=
"24dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<EditText
android:id=
"@+id/textBody"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_width=
"341dp"
android:layout_height=
"0dp"
android:layout_alignParentBottom=
"true"
android:layout_marginTop=
"8dp"
android:layout_marginBottom=
"20dp"
android:gravity=
"top"
android:hint=
"@string/dots"
android:layout_marginRight=
"10dp"
android:layout_marginLeft=
"10dp"
/>
android:selectAllOnFocus=
"false"
android:textColor=
"#000000"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.492"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/myTitle"
app:layout_constraintVertical_bias=
"0.353"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id=
"@+id/backBtn"
...
...
@@ -60,10 +46,11 @@
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginRight=
"30dp"
android:layout_marginBottom=
"30dp"
android:layout_marginEnd=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginBottom=
"16dp"
android:src=
"@drawable/ic_baseline_keyboard_backspace_24"
app:backgroundTint=
"#DF4141"
/>
</RelativeLayout>
</FrameLayout>
</RelativeLayout>
\ No newline at end of file
app:backgroundTint=
"#EA2027"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_record.xml
View file @
a04cc19a
...
...
@@ -26,8 +26,7 @@
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:src=
"@drawable/stones"
/>
android:layout_gravity=
"center_horizontal"
/>
<Chronometer
android:id=
"@+id/chronometerTimer"
...
...
app/src/main/res/layout/menu_header.xml
0 → 100644
View file @
a04cc19a
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@drawable/index"
>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/menu/bottom_nav_pic.xml
View file @
a04cc19a
...
...
@@ -14,5 +14,5 @@
<item
android:id=
"@+id/navigation_picturedNoteList"
android:icon=
"@drawable/list"
android:title=
"
pictured note
s"
/>
android:title=
"
noted pic
s"
/>
</menu>
\ No newline at end of file
app/src/main/res/menu/drawer_menu.xml
0 → 100644
View file @
a04cc19a
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
tools:showIn=
"navigation_view"
>
<group>
<item
android:id=
"@+id/allNotes"
android:icon=
"@drawable/notes"
android:title=
"@string/all_notes"
/>
<item
android:id=
"@+id/favorites"
android:icon=
"@drawable/black_star"
android:title=
"@string/favourites"
/>
<item
android:id=
"@+id/folders"
android:title=
"@string/folders"
android:icon=
"@drawable/folder"
/>
<item
android:title=
"@string/calender"
android:id=
"@+id/calender"
android:icon=
"@drawable/calender"
/>
<item
android:title=
"@string/voice_massages"
android:id=
"@+id/voiceMassages"
android:icon=
"@drawable/voice"
/>
<item
android:id=
"@+id/notedPics"
android:icon=
"@drawable/noted_pics"
android:title=
"@string/noted_pics"
/>
<item
android:title=
"@string/programs"
android:id=
"@+id/programs"
android:icon=
"@drawable/program"
/>
<item
android:title=
"@string/setting"
android:id=
"@+id/setting"
android:icon=
"@drawable/setting"
/>
<item
android:title=
"@string/information"
android:id=
"@+id/information"
android:icon=
"@drawable/information"
/>
</group>
</menu>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
a04cc19a
...
...
@@ -17,4 +17,8 @@
<string
name=
"file_name"
>
file name
</string>
<string
name=
"camera"
>
camera
</string>
<string
name=
"gallery"
>
gallery
</string>
<string
name=
"favourites"
>
favourites
</string>
<string
name=
"noted_pics"
>
noted pics
</string>
<string
name=
"programs"
>
programs
</string>
<string
name=
"folders"
>
folders
</string>
</resources>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment