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

Reveal size #2

Open
nicola73 opened this issue Jan 3, 2022 · 2 comments
Open

Reveal size #2

nicola73 opened this issue Jan 3, 2022 · 2 comments

Comments

@nicola73
Copy link

nicola73 commented Jan 3, 2022

Hello, congratulations for the excellent work. Would it be possible to make sure that the uncovered area after the swipe is automatically calculated dinamically based on the revealed part size, both left and right? Currently i use "maxRevealDp = x.dp" but a fixed size doesn't fit all situations. Thank you.

@ch4rl3x
Copy link
Owner

ch4rl3x commented Jan 3, 2022

Hey. What exactly do you mean? Without a fixed size, there will no swipe limit right? Which situation do you mean?

@nicola73
Copy link
Author

nicola73 commented Jan 4, 2022

The revealed width must coincide with the width of the controls positioned under automatically. If you set a fixed reveal size, with maxRevealDp, it may not be adequate for the swipe controls on the back.
I must set a larger maxRevealDp to ensure the underneath visibility:

Screenshot_20220104_090545

instead the length should be automatic:

Screenshot_20220104_090716

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

No branches or pull requests

2 participants