Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

ShowCaseView is behind Dialog #27

Open
newarifrh opened this issue May 18, 2019 · 4 comments
Open

ShowCaseView is behind Dialog #27

newarifrh opened this issue May 18, 2019 · 4 comments

Comments

@newarifrh
Copy link

newarifrh commented May 18, 2019

Hi, this is really a nice library. but I think there is no best way to use this library for Dialog. Because when I managed to display the showcase for the dialog, the showcase was behind it, causing me to leave the showcase, I must leave the dialog first.

I have tried using bringToFront() for the showcase but the showcase remains behind the dialog.

image

image

My Dialog

AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setTitle("NO Induk");
builder.setCancelable(false);

LayoutInflater inflater = getActivity().getLayoutInflater();
final View view = inflater.inflate(R.layout.layout_pinjam, null);

final EditText etSearch = view.findViewById(R.id.etSearch);
final RelativeLayout btnSearch = view.findViewById(R.id.search);
final ImageView qrBuku = view.findViewById(R.id.qrBuku);
final ImageView close = view.findViewById(R.id.close);

builder.setView(view);

final AlertDialog alertDialog = builder.create();
alertDialog.setCanceledOnTouchOutside(false);
alertDialog.show();

My ShowCaseView

GuideView.Builder builder = new GuideView.Builder(getContext())
  		.setTitle("Isian Peminjaman Buku")
  		.setContentText("Untuk meminjam buku masukan no induk atau scan barcode buku")
  		.setTargetView(view.findViewById(R.id.close))
  		.setContentTextSize(12)
  		.setTitleTextSize(14)
  		.setDismissType(DismissType.targetView);

GuideView guideView = builder.build();
guideView.show();
guideView.bringToFront();
@ahmadbashir1612
Copy link

Hi, this is really a nice library. but I think there is no best way to use this library for Dialog. Because when I managed to display the showcase for the dialog, the showcase was behind it, causing me to leave the showcase, I must leave the dialog first.

I have tried using bringToFront () for the showcase but the showcase remains behind the dialog.

image

image

My Dialog
AlertDialog.Builder q3 = new AlertDialog.Builder(getContext());
q3.setTitle("NO Induk");
q3.setCancelable(false);
LayoutInflater inflater = getActivity().getLayoutInflater();
final View view1 = inflater.inflate(R.layout.layout_pinjam, null);
final EditText etSearch = view1.findViewById(R.id.etSearch);
final RelativeLayout btnSearch = view1.findViewById(R.id.search);
final ImageView qrBuku = view1.findViewById(R.id.qrBuku);
final ImageView close = view1.findViewById(R.id.close);
q3.setView(view1);
final AlertDialog q3Dialog = q3.create();
q3Dialog.setCanceledOnTouchOutside(false);
q3Dialog.show();

My ShowCaseView
GuideView.Builder ok = new GuideView.Builder(getContext())
.setTitle("Isian Peminjaman Buku")
.setContentText("Untuk meminjam buku masukan no induk atau scan barcode buku")
.setTargetView(view1.findViewById(R.id.close))
.setContentTextSize(12)
.setTitleTextSize(14)
.setDismissType(DismissType.targetView);
GuideView ja = ok.build();
ja.show();
ja.bringToFront();

did u get your solution ? can u share ?

@sergiotucano
Copy link

Same issue here.

@Damercy
Copy link

Damercy commented May 14, 2021

Same issue 😢

@andrewbarabash
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants