-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Display uncropped media on account media pages (#464)
Previously media on the "Media" tab was displayed scaled and cropped to a square aspect ratio, effectively forcing the user to tap every image to see it. Now, display the images scaled but not cropped, layed out with `StaggeredGridLayoutManager`. This shows each image in full (still scaled) providing a better experience when scrolling down. Scrolling up can occasionally introduce gaps in the grid as images are re-placed as viewholders are reused. When this happens images animate to a better position when scrolling stops.
- Loading branch information
1 parent
203784d
commit 9071a89
Showing
5 changed files
with
57 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
app/src/main/java/app/pachli/components/account/media/GridSpacingItemDecoration.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
app/src/main/java/app/pachli/components/account/media/SquareImageView.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters