Create dialog from Activity

0

I was able to show an activity in the form of a dialog, but it does not respond to the context. When you click on the edit item button in my Recycler View, a form opens for changes. I'm using the method below, but no function of the form executes while doing this. Can someone explain to me why this happens?

            Dialog dialog = new Dialog(context);
            dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
            dialog.setContentView(R.layout.activity_edit_user);
            dialog.show();
    
asked by anonymous 29.09.2018 / 01:27

0 answers