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条)