Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

launcher: reduced motion puts the focused tile's name below the zoomed tile

Samuel Hinton6eeb861a7f22
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
index 1c351396f..0ba0440ba 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/AppAdapter.java
@@ -470,6 +470,9 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.Holder> {
.setInterpolator(new DecelerateInterpolator())
.withLayer().start();
name.animate().alpha(focused ? 1f : 0f).setDuration(100).start();
+ // Same place as the full motion's slide ends: the layout's -6dp is only its starting point, and
+ // left there the name overlaps the zoomed tile.
+ name.setTranslationY(focused ? density * 4f : -density * 6f);
} else {
view.animate().scaleX(s).scaleY(s)
.translationY(focused && advancedEffects ? -4f * density : 0f)