-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Can we override visibility of prev and next button ? #7410
Comments
@ojw28 can you take a look? |
This is not currently possible, but it's easy for us to add support. Marking as an enhancement. |
Actually, it is possible by removing the buttons completely from the layout file (as opposed to still having the buttons but setting their visibility to We will add setter methods though, since it's a reasonable request and using them will be much simpler than doing as suggested above. |
I would like to help, even if its a small PR. is there more than what I said ? |
Issue: #7410 PiperOrigin-RevId: 315480798
This is implemented in the commit referenced above. |
After trying to do something like:
I noticed that the button doesn't appear on Android studio preview but appears when I'm running the app. I then checked the source code and found that it comes from here:
Is there a way to override the visibility or should I do a PR (replacing VISIBLE by view.visibility) ?
EDIT:
Just to be clear, I think it should be possible to display it just under some conditions instead of displaying it automatically. In my case, I have an activity for the portrait mode (shouldn't get displayed) and another for the landscape (should get displayed).
The text was updated successfully, but these errors were encountered: