Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
likorn
/
vocabulary_notebook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5cd19159
authored
Apr 20, 2019
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Packages refactoring
parent
20b97ab4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
6 deletions
app/src/main/java/com/paktalin/vocabularynotebook/ui/activities/MainActivity.kt
app/src/main/java/com/paktalin/vocabularynotebook/ui/MyItemDetailsLookup.kt → app/src/main/java/com/paktalin/vocabularynotebook/ui/recyclerview/MyItemDetailsLookup.kt
app/src/main/java/com/paktalin/vocabularynotebook/ui/recyclerview/OnQueryTextListener.kt
app/src/main/java/com/paktalin/vocabularynotebook/ui/ViewHolder.kt → app/src/main/java/com/paktalin/vocabularynotebook/ui/recyclerview/ViewHolder.kt
app/src/main/java/com/paktalin/vocabularynotebook/ui/VocabularyAdapter.kt → app/src/main/java/com/paktalin/vocabularynotebook/ui/recyclerview/VocabularyAdapter.kt
app/src/main/java/com/paktalin/vocabularynotebook/ui/activities/MainActivity.kt
View file @
5cd19159
...
@@ -14,8 +14,8 @@ import androidx.recyclerview.selection.SelectionTracker
...
@@ -14,8 +14,8 @@ import androidx.recyclerview.selection.SelectionTracker
import
androidx.recyclerview.selection.StableIdKeyProvider
import
androidx.recyclerview.selection.StableIdKeyProvider
import
androidx.recyclerview.selection.StorageStrategy
import
androidx.recyclerview.selection.StorageStrategy
import
com.paktalin.vocabularynotebook.R
import
com.paktalin.vocabularynotebook.R
import
com.paktalin.vocabularynotebook.ui.MyItemDetailsLookup
import
com.paktalin.vocabularynotebook.ui.
recyclerview.
MyItemDetailsLookup
import
com.paktalin.vocabularynotebook.ui.VocabularyAdapter
import
com.paktalin.vocabularynotebook.ui.
recyclerview.
VocabularyAdapter
import
com.paktalin.vocabularynotebook.ui.views.LockableLayoutManager
import
com.paktalin.vocabularynotebook.ui.views.LockableLayoutManager
import
com.paktalin.vocabularynotebook.utils.*
import
com.paktalin.vocabularynotebook.utils.*
import
com.paktalin.vocabularynotebook.vocabulary.Sort
import
com.paktalin.vocabularynotebook.vocabulary.Sort
...
...
app/src/main/java/com/paktalin/vocabularynotebook/ui/MyItemDetailsLookup.kt
→
app/src/main/java/com/paktalin/vocabularynotebook/ui/
recyclerview/
MyItemDetailsLookup.kt
View file @
5cd19159
package
com.paktalin.vocabularynotebook.ui
package
com.paktalin.vocabularynotebook.ui
.recyclerview
import
android.view.MotionEvent
import
android.view.MotionEvent
import
androidx.recyclerview.selection.ItemDetailsLookup
import
androidx.recyclerview.selection.ItemDetailsLookup
...
...
app/src/main/java/com/paktalin/vocabularynotebook/ui/recyclerview/OnQueryTextListener.kt
0 → 100644
View file @
5cd19159
package
com.paktalin.vocabularynotebook.ui.recyclerview
import
androidx.appcompat.widget.SearchView
class
OnQueryTextListener
(
var
adapter
:
VocabularyAdapter
)
:
SearchView
.
OnQueryTextListener
{
override
fun
onQueryTextSubmit
(
query
:
String
):
Boolean
{
adapter
.
filter
(
query
)
return
true
}
override
fun
onQueryTextChange
(
query
:
String
):
Boolean
{
adapter
.
filter
(
query
)
return
true
}
}
\ No newline at end of file
app/src/main/java/com/paktalin/vocabularynotebook/ui/ViewHolder.kt
→
app/src/main/java/com/paktalin/vocabularynotebook/ui/
recyclerview/
ViewHolder.kt
View file @
5cd19159
package
com.paktalin.vocabularynotebook.ui
package
com.paktalin.vocabularynotebook.ui
.recyclerview
import
android.graphics.Color
import
android.graphics.Color
import
android.view.View
import
android.view.View
...
...
app/src/main/java/com/paktalin/vocabularynotebook/ui/VocabularyAdapter.kt
→
app/src/main/java/com/paktalin/vocabularynotebook/ui/
recyclerview/
VocabularyAdapter.kt
View file @
5cd19159
package
com.paktalin.vocabularynotebook.ui
package
com.paktalin.vocabularynotebook.ui
.recyclerview
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.os.Build
import
android.os.Build
...
@@ -9,7 +9,6 @@ import android.view.ViewGroup
...
@@ -9,7 +9,6 @@ import android.view.ViewGroup
import
androidx.appcompat.widget.PopupMenu
import
androidx.appcompat.widget.PopupMenu
import
androidx.recyclerview.selection.SelectionTracker
import
androidx.recyclerview.selection.SelectionTracker
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
com.paktalin.vocabularynotebook.OnQueryTextListener
import
com.paktalin.vocabularynotebook.R
import
com.paktalin.vocabularynotebook.R
import
com.paktalin.vocabularynotebook.firestoreitems.WordPojo
import
com.paktalin.vocabularynotebook.firestoreitems.WordPojo
import
com.paktalin.vocabularynotebook.ui.activities.MainActivity
import
com.paktalin.vocabularynotebook.ui.activities.MainActivity
...
...
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