Giter Site home page Giter Site logo

对话框确定颜色 about cbdialog HOT 3 CLOSED

yilylong avatar yilylong commented on August 15, 2024
对话框确定颜色

from cbdialog.

Comments (3)

yilylong avatar yilylong commented on August 15, 2024

demo 测试没问题,你再确认下

from cbdialog.

ysmintor avatar ysmintor commented on August 15, 2024
                new CBDialogBuilder(this)
                        .setTouchOutSideCancelable(true)
                        .showCancelButton(true)
                        .setTitle("设置按钮和信息文字样式")
                        .setMessage("this is a normal CBDialog")
                        .setMessageTextSize(16)
                        .setMessageTextColor(Color.BLUE)
                        .setConfirmButtonText("确定")
//                        .setConfirmBackgroundResouce(R.drawable.custom_button_background_right)
                        .setConfirmButtonTextColor(Color.RED)
                        .setCancelButtonText("取消")
                        .setCancelButtonTextColor(Color.GREEN)
                        .setDialogAnimation(CBDialogBuilder.DIALOG_ANIM_SLID_BOTTOM)
                        .create().show();

问题在于注释了setConfirmBackgroundResouce(R.drawable.custom_button_background_right)后就会在后面出现null
qq 20170913145212
下图是cancel button为null的时候(奇怪debug为空为什么还跳进if里面)
qq 20170913150351

@yilylong 麻烦你调试看看情况!

from cbdialog.

yilylong avatar yilylong commented on August 15, 2024

已修复,confirmbtn在create()方法才初始化,导致这里为null 。感谢指正,请使用最新版。

from cbdialog.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.