Java 类com.afollestad.materialdialogs.StackingBehavior 实例源码

项目:GitHub    文件:MainActivity.java   
@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();
}
项目:material-dialogs    文件:MainActivity.java   
@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();
}
项目:GitHub    文件:MDRootLayout.java   
public void setStackingBehavior(StackingBehavior behavior) {
    stackBehavior = behavior;
    invalidate();
}
项目:material-dialogs    文件:MDRootLayout.java   
public void setStackingBehavior(StackingBehavior behavior) {
  stackBehavior = behavior;
  invalidate();
}