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

XBottomSheet hidden by default #7

Open
architpoddar opened this issue Mar 18, 2020 · 2 comments
Open

XBottomSheet hidden by default #7

architpoddar opened this issue Mar 18, 2020 · 2 comments

Comments

@architpoddar
Copy link

architpoddar commented Mar 18, 2020

@AlexStefan I'd like to keep the default state of the bottom sheet as hidden. I'd like the bottom sheet to show when a button is clicked. I'm trying to implement this in Xamarin.Android

Could you please help me out with this? I've gone through a few samples and the documentation but couldn't get this particular case to work.

@butonium
Copy link
Member

@architpoddar Hello, I think there is a bug where the XBottomSheetView attributes are not read correctly. I will return with a fix and a new version or an example on how to do it in the current one.

@butonium
Copy link
Member

@architpoddar
I updated the sample to contain more examples. The XBottomSheetView is working as intended. For your case you must set the "defaultState" attribute to "hidden" and make sure that "hideable" attribute is set to "true" inside the .axml file. (you can check the update sample)

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