remove animation and unnecessary dots
This commit is contained in:
parent
c8acf18294
commit
f58498dee9
3 changed files with 12 additions and 10 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue