Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import android.view.ViewGroup.LayoutParams
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import android.view.animation.AccelerateDecelerateInterpolator
import android.view.animation.AnimationUtils
import android.view.animation.DecelerateInterpolator
import android.view.animation.LinearInterpolator
import android.widget.EditText
Expand Down Expand Up @@ -91,7 +92,9 @@ class AppOverviewWindow(
super.showPopupWindow()
initViews()
// runFadeAnimationWithTransition(true, null, null)
getContentView()?.doOnLayout {
appsVp?.doOnLayout {
val anim = AnimationUtils.loadAnimation(getContext(), R.anim.lp_enter)
appsVp?.startAnimation(anim)
// runFadeAnimationSet(true, null, null)
}
blurWallPaper(1.0f * OVERVIEW_BG_RADIUS)
Expand Down Expand Up @@ -160,6 +163,7 @@ class AppOverviewWindow(
layoutParams1.leftMargin = 100
getContentView()?.findViewById<View>(R.id.search_iv)?.layoutParams = layoutParams1
getContentView()?.findViewById<View>(R.id.search_iv)?.requestLayout()
searchEt?.getText()?.clear();
}
}
searchEt?.requestFocus()
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/res/anim/lp_enter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="120">
<scale
android:fromXScale="1.1" android:toXScale="1.0"
android:fromYScale="1.1" android:toYScale="1.0"
android:pivotX="50%" android:pivotY="50%" />
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0" />
</set>
2 changes: 2 additions & 0 deletions app/src/main/res/layout/window_topbar_control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@
android:layout_marginTop="64dp"
android:alpha="1"
android:gravity="center"
android:breakStrategy="balanced"
android:justificationMode="inter_word"
android:text="@string/printscreen_region_string"
android:textColor="#ff292929"
android:textSize="13sp" />
Expand Down
Loading