app/src/main/java/com/example/advanceddialogtest/advanceddialogview/MainActivity.java
/**
             * This method will be invoked when the passed Layout File has been loaded
             */
This method will be invoked when the passed Layout File has been loaded
This method will be invoked when the passed Layout File has been loaded
@Override
            public void onUiLoaded() {
                TextView dialogTextView = dialog.getViewByIdentity(R.id.dialog_text, new TextView(MainActivity.this));
                dialogTextView.setText(dialogText);
                Button exitButton = dialog.getViewByIdentity(R.id.exit_button, new Button(MainActivity.this));
                exitButton.setOnClickListener(view -> dialog.closeDialogView());
            }
@ Override public void onUiLoaded ( ) { TextView dialogTextView = dialog . getViewByIdentity ( R . id . dialog_text , new TextView ( MainActivity . this ) ) ; dialogTextView . setText ( dialogText ) ; Button exitButton = dialog . getViewByIdentity ( R . id . exit_button , new Button ( MainActivity . this ) ) ; exitButton . setOnClickListener ( view -> dialog . closeDialogView ( ) ) ; }
This method will be invoked when the passed Layout File has been loaded
This method will be invoked when the passed Layout File has been loaded
// Get textView, you can get your own view here :) that you have passed // Set the text // Get the Exit Button // Set exit button click listener