mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
Make colors apply on older APIs, Accellerate tooltip amimation
This commit is contained in:
parent
664e0a037e
commit
23bbc8d34c
8 changed files with 10 additions and 2 deletions
|
@ -47,14 +47,14 @@ fun View.blink(
|
|||
})
|
||||
}
|
||||
|
||||
fun View.fadeIn(duration: Long = 1000L) {
|
||||
fun View.fadeIn(duration: Long = 300L) {
|
||||
startAnimation(AlphaAnimation(0f, 1f).also {
|
||||
it.interpolator = DecelerateInterpolator()
|
||||
it.duration = duration
|
||||
})
|
||||
}
|
||||
|
||||
fun View.fadeOut(duration: Long = 1000L) {
|
||||
fun View.fadeOut(duration: Long = 300L) {
|
||||
startAnimation(AlphaAnimation(1f, 0f).also {
|
||||
it.interpolator = DecelerateInterpolator()
|
||||
it.duration = duration
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
tools:context=".ChooseActivity">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:longClickable="false"
|
||||
android:onClick="clickAnywhere"
|
||||
tools:context=".FirstStartupActivity">
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:longClickable="false"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:gravity="center|top"
|
||||
android:orientation="vertical"
|
||||
android:padding="32sp"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:gravity="center|top"
|
||||
android:orientation="vertical"
|
||||
android:padding="32sp"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:gravity="center|top"
|
||||
android:orientation="vertical"
|
||||
android:padding="32sp"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
<item name="android:textColor">@color/finnmglasTheme_text_color</item>
|
||||
<item name="android:buttonStyle">@style/Widget.AppCompat.Button.Colored</item>
|
||||
<item name="colorButtonNormal">@color/finnmglasTheme_accent_color</item>
|
||||
|
||||
<item name="android:windowDisablePreview">true</item>
|
||||
</style>
|
||||
|
@ -24,6 +25,7 @@
|
|||
|
||||
<item name="android:textColor">@color/darkTheme_text_color</item>
|
||||
<item name="android:buttonStyle">@style/Widget.AppCompat.Button.Colored</item>
|
||||
<item name="colorButtonNormal">@color/darkTheme_accent_color</item>
|
||||
|
||||
<item name="android:windowDisablePreview">true</item>
|
||||
</style>
|
||||
|
|
Loading…
Add table
Reference in a new issue