-
Notifications
You must be signed in to change notification settings - Fork 206
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
feat - add haptic feedback #1126
feat - add haptic feedback #1126
Conversation
Hi @Nanamare! Codes seem to be unformatted. To resolve this issue, please run |
As you can see, there is a person who raises a hand in the issue first. So if the person doesn't make a PR, I will merge this PR 🙇 |
onBookmarkClick = { timetableItem, isBookmarked -> | ||
haptic.performHapticFeedback( | ||
HapticFeedbackType( | ||
HapticFeedbackConstants.LONG_PRESS, |
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.
May I ask why you used LONG_PRESS here? 🙋
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.
@takahirom
it was supported starting from API Level 3, and the user experience and strength of haptic feedback were general! and It looks like it's long because it written Long_PRESS, but it's often used for general touch as well.
Do you have any better ideas ?!
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.
I'm just not familiar with this API and I was just wondering because this click is not a long press. Is there any API we can use for this? 👀
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.
How about VIRTUAL_KEY or KEYBOARD_TAP ?!
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.
@kosenda @fumiya-kume
May I ask your opinion on this?
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.
Personally, I think LONG_PRESS
is fine.
Also, this may be off topic, but I thought Haptics was unnecessary when removing bookmarks.
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.
Oh, that's a good idea.
4330d47
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.
Thanks for applying the feedback. Let's see what it is like!
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie (Optional)