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