New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couple of enhancements and changes #48
Conversation
@Swati4star This time, I even managed to squash the 4 commits without new conflicts! 😄 😆 |
@@ -202,6 +236,29 @@ private void deleteFile(String name, int position) { | |||
|
|||
} | |||
|
|||
private void deleteAllFiles() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment on top of this function too.
@Swati4star What kind of item decoration would you prefer? Just a simple dividing line? |
@Swati4star Regarding the deleting, I thought about swipe-to-delete as this would look much nicer and is relatively easy to implement with RecyclerView (one big advantage of RecyclerView compared to previous ListView) |
Yes. Just a simple divider line. Almost like the previous one. The swipe to delete will be for deleting one file. Right? |
Alright! |
User would prefer 'View File' to be easily available, as that must be the most used. That feature should not be on long press. |
Just changed the ItemDecoration as you wanted. Alright, so then swipe-to-delete for single and (action bar invoked) selection delete for multiple deletions. |
So, this commit is a fix for #44 |
No, not directly. This is just an enhancement |
Butterknife along with other enhancements. |
Okay, will try to fix this... Any other adjustments? |
No. just this enhancement. |
Any updates on this issue? are you still working on this one? |
-Replace ViewFiles TextView with much more flexible RecyclerView -Replace items with CardViews -Add ScreenUtils for converting DIP to pixels depending on screen size -Add ViewFilesDividerItemDecoration for decorating RecyclerView items -Change FilesAdapter to extend RecyclerView.Adapter<RecyclerView.ViewHolder> -Change ViewHolder to ViewFilesHolder for RecyclerView Adapter, declaring elements via Butterknife -Structured and Cleaned Classes and Code - Replace ViewFiles TextView with RecyclerView - Structure changes - Code cleaning - Change DividerItemDecoration design - Replace ViewFiles TextView with RecyclerView - Structure changes - Code cleaning Filelist items styling Readme : added google play link Bug fixes
Hey @Swati4star ! |
I would work on swipe-to-delete as well if I find enough time |
? @Swati4star 😄 |
hey sorry. I didn't look at this PR. I will surely review it within this week. |
Alright, take your time :)
… hey sorry. I didn't look at this PR. I will surely review it within this
week.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQFPFahXid6jAjHmaKO1M0yvGMyJAqUAks5tRejPgaJpZM4QKbB3>
.
|
Did you review it? @Swati4star |
Aren't you going to review/merge this any time soon? |
android:layout_height="match_parent" | ||
android:fitsSystemWindows="true" | ||
tools:openDrawer="start"> | ||
xmlns:app="http://schemas.android.com/apk/res-auto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this indentation change?
The PR looks great. I will merge it 👍 If you wish to work on swipe to delete, you can do that in another PR 👍 |
RecyclerView
CardViews
ScreenUtils
for converting DIP to pixels depending on screen sizeViewFilesDividerItemDecoration
for decorating RecyclerView itemsFilesAdapter
to extendRecyclerView.Adapter<RecyclerView.ViewHolder>
ViewHolder
toViewFilesHolder
for RecyclerView Adapter, declaring elements via ButterknifeDelete All Files
option in file menu (will be changed to action bar option according to Delete Selected / Delete All files features. #47 )