Create dialog from Activity

Asked

Viewed 29 times

0

I was able to display an Activity in dialog form, but it does not respond to the context. When you click on the edit button in my Recycler View, a form opens for changes. I am using the method below, but no form function runs while doing so. Can anyone explain to me why it happens?

            Dialog dialog = new Dialog(context);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.activity_edit_user);
            dialog.show();
  • Post all the code, please.

  • I did, just changing the theme of my XML

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.