Alerter icon indicating copy to clipboard operation
Alerter copied to clipboard

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

Open soantrinh-diag opened this issue 4 years ago • 8 comments

soantrinh-diag avatar Jan 28 '21 02:01 soantrinh-diag

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

parmarravi avatar May 26 '21 06:05 parmarravi

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.

kpmmmurphy avatar May 26 '21 07:05 kpmmmurphy

Its 7.0.0

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

parmarravi avatar May 26 '21 12:05 parmarravi

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.

kpmmmurphy avatar May 26 '21 13:05 kpmmmurphy

@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 avatar Aug 23 '21 09:08 mohammadrezaberenji

@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

mohammadrezaberenji avatar Aug 23 '21 12:08 mohammadrezaberenji

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

sudarshaana avatar Feb 12 '22 08:02 sudarshaana

@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)

mohammadrezaberenji avatar Feb 12 '22 08:02 mohammadrezaberenji