remove animation and unnecessary dots

This commit is contained in:
Chumva 2018-08-02 15:29:41 +03:00
parent c8acf18294
commit f58498dee9
3 changed files with 12 additions and 10 deletions

View file

@ -89,7 +89,8 @@
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:text="•" android:text="•"
android:textColor="?attr/android:textColorSecondary" android:textColor="?attr/android:textColorSecondary"
android:textSize="@dimen/list_item_description_text_size"/> android:textSize="@dimen/list_item_description_text_size"
android:visibility="invisible" />
</LinearLayout> </LinearLayout>

View file

@ -87,7 +87,8 @@
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:text="•" android:text="•"
android:textColor="?attr/android:textColorSecondary" android:textColor="?attr/android:textColorSecondary"
android:textSize="@dimen/list_item_description_text_size"/> android:textSize="@dimen/list_item_description_text_size"
android:visibility="invisible" />
</LinearLayout> </LinearLayout>

View file

@ -292,17 +292,17 @@ class MyLocationTabFragment : Fragment(), TelegramListener {
cornerRadiusTo.toFloat() cornerRadiusTo.toFloat()
) )
val marginAnimator = ValueAnimator.ofInt(marginFrom, marginTo) // val marginAnimator = ValueAnimator.ofInt(marginFrom, marginTo)
marginAnimator.addUpdateListener { // marginAnimator.addUpdateListener {
val value = it.animatedValue as Int // val value = it.animatedValue as Int
val params = searchBox.layoutParams as LinearLayout.LayoutParams // val params = searchBox.layoutParams as LinearLayout.LayoutParams
params.setMargins(value, params.topMargin, value, params.bottomMargin) // params.setMargins(value, params.topMargin, value, params.bottomMargin)
searchBox.layoutParams = params // searchBox.layoutParams = params
} // }
AnimatorSet().apply { AnimatorSet().apply {
duration = 200 duration = 200
playTogether(cornerAnimator, marginAnimator) play(cornerAnimator)
addListener(object : AnimatorListenerAdapter() { addListener(object : AnimatorListenerAdapter() {
override fun onAnimationEnd(animation: Animator?) { override fun onAnimationEnd(animation: Animator?) {
updateTitleTextColor() updateTitleTextColor()