From f58498dee922c9da715e2ebc0a90eaa93a9d46b7 Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 2 Aug 2018 15:29:41 +0300 Subject: [PATCH] remove animation and unnecessary dots --- .../res/layout/live_now_chat_card.xml | 3 ++- OsmAnd-telegram/res/layout/user_list_item.xml | 3 ++- .../osmand/telegram/ui/MyLocationTabFragment.kt | 16 ++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/OsmAnd-telegram/res/layout/live_now_chat_card.xml b/OsmAnd-telegram/res/layout/live_now_chat_card.xml index 5ed191d2e7..4abb6b3c18 100644 --- a/OsmAnd-telegram/res/layout/live_now_chat_card.xml +++ b/OsmAnd-telegram/res/layout/live_now_chat_card.xml @@ -89,7 +89,8 @@ android:layout_marginRight="4dp" android:text="•" android:textColor="?attr/android:textColorSecondary" - android:textSize="@dimen/list_item_description_text_size"/> + android:textSize="@dimen/list_item_description_text_size" + android:visibility="invisible" /> diff --git a/OsmAnd-telegram/res/layout/user_list_item.xml b/OsmAnd-telegram/res/layout/user_list_item.xml index da4e6a1c41..a96bd241fa 100644 --- a/OsmAnd-telegram/res/layout/user_list_item.xml +++ b/OsmAnd-telegram/res/layout/user_list_item.xml @@ -87,7 +87,8 @@ android:layout_marginRight="4dp" android:text="•" android:textColor="?attr/android:textColorSecondary" - android:textSize="@dimen/list_item_description_text_size"/> + android:textSize="@dimen/list_item_description_text_size" + android:visibility="invisible" /> diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt index cd89ad6953..f1ddd453cb 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt @@ -292,17 +292,17 @@ class MyLocationTabFragment : Fragment(), TelegramListener { cornerRadiusTo.toFloat() ) - val marginAnimator = ValueAnimator.ofInt(marginFrom, marginTo) - marginAnimator.addUpdateListener { - val value = it.animatedValue as Int - val params = searchBox.layoutParams as LinearLayout.LayoutParams - params.setMargins(value, params.topMargin, value, params.bottomMargin) - searchBox.layoutParams = params - } +// val marginAnimator = ValueAnimator.ofInt(marginFrom, marginTo) +// marginAnimator.addUpdateListener { +// val value = it.animatedValue as Int +// val params = searchBox.layoutParams as LinearLayout.LayoutParams +// params.setMargins(value, params.topMargin, value, params.bottomMargin) +// searchBox.layoutParams = params +// } AnimatorSet().apply { duration = 200 - playTogether(cornerAnimator, marginAnimator) + play(cornerAnimator) addListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { updateTitleTextColor()