1
0
Fork 0

For #10091 Add extension to remove and disable button

master
mcarare 2020-04-23 15:34:35 +03:00 committed by Emily Kager
parent 932fd44823
commit 9dd8314d14
1 changed files with 5 additions and 0 deletions

View File

@ -16,3 +16,8 @@ fun ImageButton.showAndEnable() {
this.visibility = View.VISIBLE
this.isEnabled = true
}
fun ImageButton.removeAndDisable() {
this.visibility = View.GONE
this.isEnabled = false
}