We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't place several buttons in one row. How can I do that?
The text was updated successfully, but these errors were encountered:
You can create a custom layout and attach it to the dialog by using setFooterView
Hope it helps
LayoutInflater inflater = this.getLayoutInflater(); final View footer = inflater.inflate(R.layout.dialog_alert_footer_layout, null); footer.findViewById(R.id.yesButton).setOnClickListener(v -> { // }); footer.findViewById(R.id.noButton).setOnClickListener(v -> { // }); CFAlertDialog.Builder builder = new CFAlertDialog.Builder(this) .setDialogStyle(CFAlertDialog.CFAlertStyle.ALERT) .setTitle(title) .setMessage(message) .setCancelable(false) .setTextGravity(Gravity.CENTER_HORIZONTAL) .setHeaderView(header) .setFooterView(footer)
Sorry, something went wrong.
No branches or pull requests
I can't place several buttons in one row. How can I do that?
The text was updated successfully, but these errors were encountered: