Skip to content
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

Add more Android ripples #5757

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gpp-0
Copy link
Contributor

@gpp-0 gpp-0 commented Oct 15, 2024

I don't know if this was a deliberate design choice but the lack of ripple effects on Android makes the app feel very unresponsive to me, so I tried adding them in some places where I feel they make sense.

What I added

  • Ripples were already implemented for posts that appear in the home tab, but they don't work on posts that appear in replies, or in the search and notification tabs. Quote embeds also don't have ripples even when the parent post does. I added all of those by setting the noFeedback property on the view/com/util/Link component but that looks like a hack and is probably not good
  • I added ripples on user avatars that appear in profile headers
  • I also added ripples on image/video/gif embeds. On images that are added in the composer, I replaced an invisible TouchableOpacity that only covered part of the image so now the entire image is pressable

What is missing

  • I didn't add ripples on components that use the components/Link element because I couldn't figure out how to do it properly. Those include Cards (as in ProfileCard, FeedCard etc.), user avatars on posts, and embedded external links

posts that appear on the home tab already have ripples.
this also adds ripples on posts that appear in the search and
notification tabs, in replies, and in embedded quotes.

ripples on posts that appear in replies look kinda ugly  (especially in
threaded mode) because the pressable area doesn't extend horizontally to
the edges of the screen, not sure if something should be done about this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant