How to show a Showcase View on top of a dialog?

Viewed 145

I'm currently using a Showcase View called FancyShowCaseView by faruktoptas but I'm willing to use any other one if it solves this problem.

The issue is that I have a dialog fragment which I want to use showcase views on but they always appear below the dialog.

I write the showcase view inside the dialog fragment code like this:

public class MyDialog extends AppCompatDialogFragment {

    public Dialog onCreateDialog(Bundle savedInstanceState) {

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

        new FancyShowCaseView.Builder(getActivity())
                                .focusOn( view.findviewbyid(R.id.somebutton) )
                                .title("This button does this and that")
                                .backgroundColor(R.color.white)
                                .build()
                                .show();
    }
}
0 Answers
Related