Skip to content

Conversation

@Rahul1d
Copy link

@Rahul1d Rahul1d commented Mar 31, 2020

Added a Edit Text Option to the prompt Dialog.

Sample code to add Edit text;

 new PromptDialog(this)
                .setDialogType(PromptDialog.DIALOG_TYPE_EDIT)
                .setAnimationEnable(true)
                .setTitleText("EDIT")
                .setContentText("Sub Title")
                .setEditTextHint("Enter Text")
                .setPositiveListener(getString(R.string.edit), new PromptDialog.OnPositiveListener() {
                    @Override
                    public void onClick(PromptDialog dialog) {
                        dialog.dismiss();
                        Toast.makeText(MainActivity.this,dialog.getEditText().getText().toString(),Toast.LENGTH_LONG).show();
                    }
                }).show(); 

I have attached the Demo here:
Edit Text - demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant