@OnClick(R.id.stacked) public void showStacked() { new MaterialDialog.Builder(this) .title(R.string.useGoogleLocationServices) .content(R.string.useGoogleLocationServicesPrompt) .positiveText(R.string.speedBoost) .negativeText(R.string.noThanks) .btnStackedGravity(GravityEnum.END) .stackingBehavior(StackingBehavior.ALWAYS) // this generally should not be forced, but is used for demo purposes .show(); }
@OnClick(R.id.stacked) public void showStacked() { new MaterialDialog.Builder(this) .title(R.string.useGoogleLocationServices) .content(R.string.useGoogleLocationServicesPrompt, true) .positiveText(R.string.speedBoost) .negativeText(R.string.noThanks) .btnStackedGravity(GravityEnum.END) .stackingBehavior( StackingBehavior .ALWAYS) // this generally should not be forced, but is used for demo purposes .show(); }
public void setStackingBehavior(StackingBehavior behavior) { stackBehavior = behavior; invalidate(); }