Create bottom sheet for shake-to-feedback and launch them when shake is detected #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Create bottom sheet for shake-to-feedback and launch them when shake is detected
BottomSheetFeedbackItem: data wrapper to store content to be displayed for single row in bottomsheet.BottomSheetFeedbackTypeAdapter: RecyclerView.Adapter for the select type of feedback view.shaky_feedback_bottomsheet: bottomsheet's xml containing RV to show options.shaky_dismiss: Dismiss icon.Shakyto detect shake and launch bottom sheet accordingly.activity_demo.xml.ShakyApplicationandShakeDelegateto add methods for setting theme and boolean to handle bottomsheet support launch.ActionConstants.FeedbackItem.GENERALonACTION_START_GENERAL_FEEDBACK.Testing Done
Tested locally. Please refer the attached screenshots and recordings.
Screenshots
Videos
before-manual-bottomsheet.mp4
after-manual-bottom-sheet.mp4
before-shake-detect.mp4
after-shake-detect.mp4