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

It's showing behind the BottomSheetDialogFragment. How I can solve this problem? Please help.. #250

Open
soantrinh-diag opened this issue Jan 28, 2021 · 8 comments

Comments

@soantrinh-diag
Copy link

No description provided.

@parmarravi
Copy link

Is there a solution to show on top of bottom sheet dialog fragment

@kpmmmurphy
Copy link
Collaborator

Hey @parmarravi @soantrinh-diag, could you please confirm the version of Alerter you are using, and provide a code snippet of how you are calling the Alerter please.

@parmarravi
Copy link

Its 7.0.0

implementation 'com.tapadoo.android:alerter:7.0.0'

@kpmmmurphy
Copy link
Collaborator

Hey @parmarravi, could you provide a code snippet also please? I recommend you read our contributing document where we outline how to log issues - https://github.com/Tapadoo/Alerter/blob/master/CONTRIBUTING.md.

@mohammadrezaberenji
Copy link

mohammadrezaberenji commented Aug 23, 2021

@kpmmmurphy @parmarravi I also have this problem with showing alerter inside a botthomSheetDialogFragment. it's not in focus and it seems that it shows the top of behind activity/fragment. on lates version 7.2.4

@mohammadrezaberenji
Copy link

@kpmmmurphy @parmarravi I found how it was wrong. I was using Alerter.create(activity ) instead of Alerter.creat(dialog). now the problem is solved. Thanks!
@soantrinh-diag

@sudarshaana
Copy link

@mohammadrezaberenji, I am facing the same issue. Can you share your implementation?

@mohammadrezaberenji
Copy link

mohammadrezaberenji commented Feb 12, 2022

@sudarshaana you must use the 7.2.4 version of Alerter. and if you want to use it in dialog pass the dialog reference into constructor. see this :

Gradle : implementation 'com.github.tapadoo:alerter:7.2.4'

val snackBar: Alerter = Alerter.create(dialog) .setText(message) .setRightIcon(R.drawable.circle_grey) .setContentGravity(Gravity.END) .setTextAppearance(R.style.textSnackBarMessage) .setBackgroundColorRes(color) .enableSwipeToDismiss() .setDuration(if (hideAutomatically) durationTime else durationTimeLong)

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

5 participants