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

Bug: bottom sheet looks almost non-existing when on landscape #210

Open
AndroidDeveloperLB opened this issue Sep 28, 2019 · 1 comment
Open

Comments

@AndroidDeveloperLB
Copy link

I tried this piece of code:

    val galleryIntent: Intent = Intent(Intent.ACTION_GET_CONTENT)
    galleryIntent.type = "image/*"
    val intentPickerSheetView = IntentPickerSheetView(this, galleryIntent, "Share with...", IntentPickerSheetView.OnIntentPickedListener { activityInfo ->
        bottomsheet.dismissSheet()
    })
    bottomsheet.showWithSheetView(intentPickerSheetView)

It works, but on landscape I get this tiny bottom sheet:

image

How come?

Attached sample project.

My Application.zip

@omkar-tenkale
Copy link

omkar-tenkale commented Sep 23, 2020

Workaround

boolean landScapeMode = mContext. getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; 
if(landScapeMode){
 bortomsheet.setPeekHeight(5000); //Or any high value 
}

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