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: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" />
</LinearLayout>

View file

@ -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" />
</LinearLayout>

View file

@ -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()