JohnWayneeee/cleantv / skills/android-tv-setup
android-tv-setup
UnverifiedSet up an Android TV or Google TV over network ADB - back up, debloat with the owner's choices, switch off screen recognition (ACR) and take the microphone and camera away from vendor apps, tune performance, set picture and sound like a calibrator, replace the home screen with a clean Apple TV style launcher, and set up a YouTube DPI bypass (ByeByeDPI) where the ISP throttles YouTube, verifying every step with screenshots from the TV. Use when the user wants to debloat, clean up, speed up, configure, calibrate or replace the launcher on an Android TV / Google TV set or box (Xiaomi, TCL, Hisense, Sony, Philips, CHiQ/Changhong, Haier, Nvidia Shield and others). Not for Samsung Tizen, LG webOS or Fire TV launchers.
launcher/app/src/main/java/com/cleantv/launcher/SkeletonAdapter.java
View on GitHubpackage com.cleantv.launcher;
import android.animation.ValueAnimator;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AccelerateDecelerateInterpolator;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.List;
/** Placeholder tiles shown on cold start until the app list is loaded. */
final class SkeletonAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
/** One animator drives every plate of every skeleton adapter, so they sweep in sync. */
static final class Shimmer {
private final List<ShimmerDrawable> plates = new ArrayList<>();
private final ValueAnimator anim = ValueAnimator.ofFloat(0, 1);
Shimmer() {
anim.setDuration(1400);
anim.setRepeatCount(ValueAnimator.INFINITE);
anim.setInterpolator(new AccelerateDecelerateInterpolator());
anim.addUpdateListener(a -> {
float p = (float) a.getAnimatedValue();
for (int i = 0; i < plates.size(); i++) plates.get(i).setProgress(p);
});
}
void start() {
anim.start();
}
void stop() {
anim.cancel();
plates.clear();
}
}
private final Shimmer shimmer;
private final int count, cardHeight, gap;
private final float radius;
SkeletonAdapter(Shimmer shimmer, int count, int cardHeight, int gap, float radius) {
this.shimmer = shimmer;
this.count = count;
this.cardHeight = cardHeight;
this.gap = gap;
this.radius = radius;
}
@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int type) {
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_tile, parent, false);
v.setPadding(gap / 2, 0, gap / 2, 0);
View card = v.findViewById(R.id.card);
card.getLayoutParams().height = cardHeight;
ShimmerDrawable plate = new ShimmerDrawable(radius);
card.setBackground(plate);
shimmer.plates.add(plate);
v.findViewById(R.id.label).setAlpha(0);
return new RecyclerView.ViewHolder(v) {
};
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder h, int pos) {
}
@Override
public int getItemCount() {
return count;
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |