android - 'confirm' and 'cancel' Buttons are not showing in ColorPickerDialog in Kotlin XML - St

The comfirm and cancel buttons in the bottom are not showing while the dialog is openingImage hereHER

The comfirm and cancel buttons in the bottom are not showing while the dialog is opening Image here HERE IS MY CODE

 private fun showColorPickerDialog(){
          ColorPickerDialog.Builder(this)
            .setTitle("ColorPicker Dialog")
            .setPreferenceName("ColorPickerDialog")
            .setPositiveButton(getString(R.string.confirm), object : ColorEnvelopeListener {
                override fun onColorSelected(envelope: ColorEnvelope, fromUser: Boolean) {
                    mPickColorButton!!.tag = Color.parseColor(envelope.hexCode.toString())
                    val coltag = mPickColorButton!!.tag.toString()
                    drawingView?.setColor(coltag)
                }
            }).setNegativeButton(getString(R.string.cancel),object : DialogInterface.OnClickListener{
                  override fun onClick(dialog: DialogInterface?, which: Int) {
                      dialog?.dismiss()
                  }
            })
            .attachAlphaSlideBar(true)
            .attachBrightnessSlideBar(true)
              .setBottomSpace(20)
            .show()

    }

The library link :

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744894247a4599597.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信