1.解决动画结束焦点未落在快捷栏的问题

This commit is contained in:
2026-03-11 21:49:37 +08:00
parent e519adfb02
commit 84883cd7a8
2 changed files with 4 additions and 2 deletions

View File

@@ -880,7 +880,7 @@ public boolean onGenericMotionEvent(MotionEvent event) {
}
});
translateAnimation.setDuration(360);
translateAnimation.setDuration(380);
translateAnimation.setFillAfter(true);
content_view.startAnimation(translateAnimation);
@@ -897,7 +897,7 @@ public boolean onGenericMotionEvent(MotionEvent event) {
cuttentModel = MODEL_NORMAL;
LogUtils.loge("coustom_view.getHeight():"+coustom_view.getLayoutParams().height);
TranslateAnimation translateAnimation = new TranslateAnimation(0.0f, 0.0f,(float)(0 - coustom_view.getLayoutParams().height - gv_shortcut.getHeight()),0.0f);
translateAnimation.setDuration(360);
translateAnimation.setDuration(380);
translateAnimation.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {

View File

@@ -18,6 +18,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import com.android.util.LogUtils;
import com.ik.mboxlauncher.R;
@@ -125,6 +126,7 @@ public class TvRecyclerView extends RecyclerView {
// }
if(!gainFocus){
hasResetFocus=false;
LogUtils.loge("TvRecyclerView gainFocus="+gainFocus);
}
}