MainActivity.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:material-dialogs 作者:
@OnClick(R.id.themed)
public void showThemed() {
  new MaterialDialog.Builder(this)
      .title(R.string.useGoogleLocationServices)
      .content(R.string.useGoogleLocationServicesPrompt, true)
      .positiveText(R.string.agree)
      .negativeText(R.string.disagree)
      .positiveColorRes(R.color.material_red_400)
      .negativeColorRes(R.color.material_red_400)
      .titleGravity(GravityEnum.CENTER)
      .titleColorRes(R.color.material_red_400)
      .contentColorRes(android.R.color.white)
      .backgroundColorRes(R.color.material_blue_grey_800)
      .dividerColorRes(R.color.accent)
      .btnSelector(R.drawable.md_btn_selector_custom, DialogAction.POSITIVE)
      .positiveColor(Color.WHITE)
      .negativeColorAttr(android.R.attr.textColorSecondaryInverse)
      .theme(Theme.DARK)
      .show();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号