You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
305 B
19 lines
305 B
6 years ago
|
package com.keylesspalace.tusky.util
|
||
|
|
||
|
import android.view.View
|
||
|
|
||
|
fun View.show() {
|
||
|
this.visibility = View.VISIBLE
|
||
|
}
|
||
|
|
||
|
fun View.hide() {
|
||
|
this.visibility = View.GONE
|
||
|
}
|
||
|
|
||
|
fun View.visible(visible: Boolean) {
|
||
|
this.visibility = if(visible) {
|
||
|
View.VISIBLE
|
||
|
} else {
|
||
|
View.GONE
|
||
|
}
|
||
|
}
|