Commit 9a56b66c authored by wanglei's avatar wanglei

...

parent 495c26d3
......@@ -145,19 +145,39 @@ class Splash2Activity : BaseActivity<ActivitySplash2Binding>(),
callback.invoke()
}
}
}
}
}
}
} else {
callback.invoke()
if (isAgree) {
AnimationHelper.startAlphaAnimation(binding.pb, 800, null) {
callback.invoke()
}
} else {
AnimationHelper.startAlphaAnimation(binding.idTvStart, 1200, {
val set1 = AnimatorSet()
// 创建缩放动画的ObjectAnimator
val scaleUpAnimator1 = ObjectAnimator.ofFloat(binding.idTvStart, "scaleX", 1f, 0.95f, 1.05f)
val scaleUpAnimator2 = ObjectAnimator.ofFloat(binding.idTvStart, "scaleY", 1f, 0.95f, 1.05f)
scaleUpAnimator1.duration = 1200 // 动画持续500毫秒
scaleUpAnimator1.repeatCount = 1 // 重复次数
scaleUpAnimator1.repeatMode = ValueAnimator.REVERSE // 反向重复,实现缩小效果
scaleUpAnimator2.duration = 1200 // 动画持续500毫秒
scaleUpAnimator2.repeatCount = 1 // 重复次数
set1.playTogether(scaleUpAnimator1, scaleUpAnimator2)
set1.start()
}) {
callback.invoke()
}
}
}
}.start()
}
private fun closeNotification() {
sendBroadcast(Intent(this, CloseNotificationReceiver::class.java).apply {
this.action = CloseNotificationReceiver.Action
......
......@@ -45,7 +45,7 @@
android:layout_marginVertical="5dp"
app:tab_deselect_color="@color/black"
app:tab_divider_solid_color="@android:color/transparent"
app:tab_divider_width="16dp"
app:tab_divider_width="10dp"
app:tab_draw_divider="true"
app:tab_enable_ico_color="false"
app:tab_indicator_style="STYLE_NONE"
......
......@@ -45,7 +45,7 @@
android:layout_marginVertical="10dp"
app:tab_deselect_color="@color/black"
app:tab_divider_solid_color="@android:color/transparent"
app:tab_divider_width="16dp"
app:tab_divider_width="10dp"
app:tab_draw_divider="true"
app:tab_enable_ico_color="false"
app:tab_indicator_style="STYLE_NONE"
......
......@@ -7,8 +7,7 @@
android:layout_gravity="center_vertical"
android:background="@drawable/bg_tab_selector_webstore"
android:gravity="center"
android:paddingHorizontal="18dp"
android:paddingHorizontal="10dp"
android:paddingVertical="5dp"
android:textSize="17sp"
android:textStyle="bold"
tools:text="Latest" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment