For #10091 Add extension to remove and disable button
parent
932fd44823
commit
9dd8314d14
|
@ -16,3 +16,8 @@ fun ImageButton.showAndEnable() {
|
||||||
this.visibility = View.VISIBLE
|
this.visibility = View.VISIBLE
|
||||||
this.isEnabled = true
|
this.isEnabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun ImageButton.removeAndDisable() {
|
||||||
|
this.visibility = View.GONE
|
||||||
|
this.isEnabled = false
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue