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 7 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

@gaearon
Copy link
Collaborator

gaearon commented Nov 23, 2024

Would you mind bringing this up-to-date? Sounds like a good idea

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
@gpp-0 gpp-0 force-pushed the add-android-ripple branch from 7795ba7 to e0f313e Compare November 29, 2024 23:07
@gpp-0
Copy link
Contributor Author

gpp-0 commented Nov 30, 2024

@gaearon Sorry, I missed that message, I've updated the PR!

Btw this is a super tiny detail but if this is merged then it makes the issue in #5751 ever so slightly more visible

Moved some paddings around to remove the gap that appears to the left
and right of treeview replies that was not covered by the ripple
previously.
Now the pressable itself extends from the rightmost thread border line
thingy all the way to the right edge of the screen.

I tried to make sure that the layout stays exactly the same as before,
which unfortunately required some annoying style logic...
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.

2 participants