本文整理汇总了Java中com.afollestad.materialdialogs.StackingBehavior类的典型用法代码示例。如果您正苦于以下问题:Java StackingBehavior类的具体用法?Java StackingBehavior怎么用?Java StackingBehavior使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StackingBehavior类属于com.afollestad.materialdialogs包,在下文中一共展示了StackingBehavior类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showStacked
import com.afollestad.materialdialogs.StackingBehavior; //导入依赖的package包/类
@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();
}
示例2: showStacked
import com.afollestad.materialdialogs.StackingBehavior; //导入依赖的package包/类
@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();
}
示例3: setStackingBehavior
import com.afollestad.materialdialogs.StackingBehavior; //导入依赖的package包/类
public void setStackingBehavior(StackingBehavior behavior) {
stackBehavior = behavior;
invalidate();
}
示例4: setStackingBehavior
import com.afollestad.materialdialogs.StackingBehavior; //导入依赖的package包/类
public void setStackingBehavior(StackingBehavior behavior) {
stackBehavior = behavior;
invalidate();
}