lewisjdeane / L-Dialogs

A small library replicating the new dialogs in android L.
567 stars 100 forks source link

How to make buttons align in a row? #47

Open mahmouxd opened 9 years ago

mahmouxd commented 9 years ago

I'm using this code:

CustomDialog.Builder builder = new CustomDialog.Builder(
                            this, "تأیید", "عنوان");
builder.content("بایستی دوباره وارد شوید...")
                            .negativeText("خروج")
                            .titleAlignment(BaseDialog.Alignment.RIGHT)
                            .contentAlignment(BaseDialog.Alignment.RIGHT)
                            .positiveColorRes(R.color.text_color)
                            .build().show();

The buttons are shown in a column a the right (like the standard dark themed titled "Factory Reset"). How can I make them aligned in a row (like the standard permission dialog)?