Add a few more providers and fix multiple bugs

This commit is contained in:
Tommaso Berlose
2020-10-11 21:59:44 +02:00
parent 1644fb7682
commit 6a912ee003
149 changed files with 923 additions and 404 deletions

View File

@ -95,7 +95,7 @@ fun View.expand() {
}
}
fun View.collapse() {
fun View.collapse(duration: Long = 500L) {
if (visibility != View.GONE) {
val initialHeight = measuredHeight
@ -114,7 +114,7 @@ fun View.collapse() {
}
}
a.duration = 500L //(initialHeight / v.context.resources.displayMetrics.density).toLong()
a.duration = duration //(initialHeight / v.context.resources.displayMetrics.density).toLong()
startAnimation(a)
}
}