Collapsable manga summary/genre section

This commit is contained in:
arkon
2020-04-18 12:40:47 -04:00
parent e388f0d563
commit df69559b39
6 changed files with 111 additions and 32 deletions

View File

@@ -80,6 +80,10 @@ inline fun View.visibleIf(block: () -> Boolean) {
visibility = if (block()) View.VISIBLE else View.GONE
}
inline fun View.toggle() {
visibleIf { visibility == View.GONE }
}
/**
* Sets a round TextDrawable into an ImageView determined by input.
*