feat Rename refs #7763
This commit is contained in:
parent
fc98bd5162
commit
52c9cbf859
|
@ -100,6 +100,9 @@ class CustomDialogInput(context: Context) : Dialog(context, R.style.DialogTheme)
|
|||
fun setFocusText() {
|
||||
binding.customDialogValue.requestFocus()
|
||||
}
|
||||
fun setFocusTextTwo() {
|
||||
binding.customDialogValueTwo.requestFocus()
|
||||
}
|
||||
|
||||
fun plusTextButton(view: View) {
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
|
|||
init {
|
||||
|
||||
setContentView(binding.root)
|
||||
//setContentView(R.layout.component_custom_two_dialog)
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,8 +22,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
|
|||
binding.customDialogTitle.visibility= View.VISIBLE
|
||||
binding.customDialogTitle.text=title
|
||||
|
||||
/* custom_dialog_title.visibility = View.VISIBLE
|
||||
custom_dialog_title.text = title*/
|
||||
return this
|
||||
}
|
||||
|
||||
|
@ -32,8 +29,7 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
|
|||
|
||||
binding.customDialogDescription.visibility= View.VISIBLE
|
||||
binding.customDialogDescription.text=description
|
||||
/* custom_dialog_description.visibility = View.VISIBLE
|
||||
custom_dialog_description.text = description*/
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
|
@ -43,9 +39,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
|
|||
binding.customDialogButtonOk.text =text
|
||||
binding.customDialogButtonOk.setOnClickListener { onButtonClicked() }
|
||||
|
||||
/*custom_dialog_button_ok.visibility = View.VISIBLE
|
||||
custom_dialog_button_ok.text = text
|
||||
custom_dialog_button_ok.setOnClickListener { onButtonClicked() }*/
|
||||
return this
|
||||
}
|
||||
|
||||
|
@ -55,9 +48,14 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
|
|||
binding.customDialogButtonOkTwo.text = text
|
||||
binding.customDialogButtonOkTwo.setOnClickListener { onButtonClicked() }
|
||||
|
||||
/* custom_dialog_button_ok_two.visibility = View.VISIBLE
|
||||
custom_dialog_button_ok_two.text = text
|
||||
custom_dialog_button_ok_two.setOnClickListener { onButtonClicked() }*/
|
||||
return this
|
||||
}
|
||||
fun setOkButtonThree(text: String, onButtonClicked: () -> Unit): CustomDialogTwoButtons {
|
||||
|
||||
binding.customDialogButtonOkThree.visibility = View.VISIBLE
|
||||
binding.customDialogButtonOkThree.text = text
|
||||
binding.customDialogButtonOkThree.setOnClickListener { onButtonClicked() }
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
|
@ -67,9 +65,6 @@ class CustomDialogTwoButtons (context: Context) : Dialog(context, R.style.Dialog
|
|||
binding.customDialogButtonKo.text =text
|
||||
binding.customDialogButtonKo.setOnClickListener { onButtonClicked() }
|
||||
|
||||
/*custom_dialog_button_ko.visibility = View.VISIBLE
|
||||
custom_dialog_button_ko.text = text
|
||||
custom_dialog_button_ko.setOnClickListener { onButtonClicked() }*/
|
||||
return this
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue