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
69310e71
Commit
69310e71
authored
Sep 24, 2020
by
9731301
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get data in activity andset it in fragment with bundle
parent
dd7c31f6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
95 deletions
+21
-95
vcs.xml
.idea/vcs.xml
+7
-0
MyAdaptor.java
...d/MenuFeatures/AllNotes/MyNoteRecyclerView/MyAdaptor.java
+4
-0
MyNote.java
...epad/MenuFeatures/AllNotes/MyNoteRecyclerView/MyNote.java
+4
-0
OnItemClickListener.java
...ures/AllNotes/MyNoteRecyclerView/OnItemClickListener.java
+6
-0
MyAdaptor.java
...enuFeatures/AllNotes/Note/NoteRecyclerView/MyAdaptor.java
+0
-70
MyNote.java
...d/MenuFeatures/AllNotes/Note/NoteRecyclerView/MyNote.java
+0
-25
No files found.
.idea/vcs.xml
0 → 100644
View file @
69310e71
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
<mapping
directory=
"$PROJECT_DIR$/my-notepad"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
app/src/main/java/com/example/mynotepad/MenuFeatures/AllNotes/MyNoteRecyclerView/MyAdaptor.java
0 → 100644
View file @
69310e71
package
com
.
example
.
mynotepad
.
MenuFeatures
.
AllNotes
.
MyNoteRecyclerView
;
public
class
MyAdaptor
{
}
app/src/main/java/com/example/mynotepad/MenuFeatures/AllNotes/MyNoteRecyclerView/MyNote.java
0 → 100644
View file @
69310e71
package
com
.
example
.
mynotepad
.
MenuFeatures
.
AllNotes
.
MyNoteRecyclerView
;
public
class
MyNote
{
}
app/src/main/java/com/example/mynotepad/MenuFeatures/AllNotes/MyNoteRecyclerView/OnItemClickListener.java
0 → 100644
View file @
69310e71
package
com
.
example
.
mynotepad
.
MenuFeatures
.
AllNotes
.
MyNoteRecyclerView
;
public
interface
RecyclerViewOnClickListener
{
void
onItemClicked
(
MyNote
item
);
void
onItemLongClick
(
MyNote
item
);
}
app/src/main/java/com/example/mynotepad/MenuFeatures/AllNotes/Note/NoteRecyclerView/MyAdaptor.java
deleted
100644 → 0
View file @
dd7c31f6
package
com
.
example
.
mynotepad
.
MenuFeatures
.
AllNotes
.
Note
.
NoteRecyclerView
;
import
android.content.Context
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.TextView
;
import
androidx.annotation.NonNull
;
import
androidx.recyclerview.widget.RecyclerView
;
import
com.example.mynotepad.R
;
import
java.util.List
;
public
class
MyAdaptor
extends
RecyclerView
.
Adapter
<
MyAdaptor
.
ViewHolder
>
{
List
<
MyNote
>
notes
;
Context
context
;
public
MyAdaptor
(
List
<
MyNote
>
notes
,
Context
context
)
{
this
.
notes
=
notes
;
this
.
context
=
context
;
}
@NonNull
@Override
public
ViewHolder
onCreateViewHolder
(
@NonNull
ViewGroup
parent
,
int
viewType
)
{
View
view
=
LayoutInflater
.
from
(
parent
.
getContext
()).
inflate
(
R
.
layout
.
custom_item_row
,
parent
,
false
);
return
new
ViewHolder
(
view
);
}
@Override
public
void
onBindViewHolder
(
ViewHolder
holder
,
int
position
)
{
holder
.
titleTV
.
setText
(
notes
.
get
(
position
).
getTitle
());
holder
.
descriptionTV
.
setText
(
notes
.
get
(
position
).
getDescription
());
holder
.
isAchieved
=
notes
.
get
(
position
).
isAchieved
();
}
@Override
public
int
getItemCount
()
{
return
notes
.
size
();
}
class
ViewHolder
extends
RecyclerView
.
ViewHolder
implements
View
.
OnClickListener
,
View
.
OnLongClickListener
{
protected
TextView
titleTV
,
descriptionTV
;
protected
boolean
isAchieved
;
public
ViewHolder
(
View
itemView
)
{
super
(
itemView
);
titleTV
=
itemView
.
findViewById
(
R
.
id
.
titleTv
);
descriptionTV
=
itemView
.
findViewById
(
R
.
id
.
descriptionTv
);
isAchieved
=
false
;
}
@Override
public
void
onClick
(
View
view
)
{
}
@Override
public
boolean
onLongClick
(
View
view
)
{
return
false
;
}
}
}
app/src/main/java/com/example/mynotepad/MenuFeatures/AllNotes/Note/NoteRecyclerView/MyNote.java
deleted
100644 → 0
View file @
dd7c31f6
package
com
.
example
.
mynotepad
.
MenuFeatures
.
AllNotes
.
Note
.
NoteRecyclerView
;
public
class
MyNote
{
private
String
title
,
description
;
private
boolean
isAchieved
;
public
MyNote
(
String
title
,
String
description
,
boolean
isAchieved
)
{
this
.
title
=
title
;
this
.
description
=
description
;
this
.
isAchieved
=
isAchieved
;
}
public
String
getTitle
()
{
return
title
;
}
public
String
getDescription
()
{
return
description
;
}
public
boolean
isAchieved
()
{
return
isAchieved
;
}
}
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