0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-18 01:05:10 +00:00

animation tests

This commit is contained in:
X1nto 2020-05-10 19:19:01 +04:00
parent 2ae08aeb88
commit cb52363caf

View file

@ -67,8 +67,8 @@ class HomeFragment : Home() {
val networkErrorLayout = view?.findViewById<MaterialCardView>(R.id.home_network_wrapper) val networkErrorLayout = view?.findViewById<MaterialCardView>(R.id.home_network_wrapper)
val mainLayout = view?.findViewById<LinearLayout>(R.id.home_main_wrapper) val mainLayout = view?.findViewById<LinearLayout>(R.id.home_main_wrapper)
val oa0 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0f, 0.3f) val oa0 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0f, 0.1f)
val oa1 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0.3f, 0.1f) val oa1 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0.1f, 0.01f)
val oa2 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", -1f, 0.3f) val oa2 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", -1f, 0.3f)
val oa3 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0.3f, 0f) val oa3 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0.3f, 0f)
@ -97,8 +97,8 @@ class HomeFragment : Home() {
val networkErrorLayout = view?.findViewById<MaterialCardView>(R.id.home_network_wrapper) val networkErrorLayout = view?.findViewById<MaterialCardView>(R.id.home_network_wrapper)
val mainLayout = view?.findViewById<LinearLayout>(R.id.home_main_wrapper) val mainLayout = view?.findViewById<LinearLayout>(R.id.home_main_wrapper)
val oa0 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0f, 0.3f) val oa0 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0f, 0.1f)
val oa1 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0.3f, 0f) val oa1 = ObjectAnimator.ofFloat(mainLayout, "yFraction", 0.1f, 0f)
val oa2 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0f, 0.3f) val oa2 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0f, 0.3f)
val oa3 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0.3f, -1f) val oa3 = ObjectAnimator.ofFloat(networkErrorLayout, "yFraction", 0.3f, -1f)