Skip to content

Instantly share code, notes, and snippets.

View AjeshRPai's full-sized avatar
😀

Ajesh AjeshRPai

😀
View GitHub Profile
@jonfhancock
jonfhancock / ExcellentAdventure.java
Last active October 26, 2025 18:43
This set of classes demonstrates what a Not Dumb ViewHolder should look like. It lightens the load on the Adapter, and places decisions about what to do with user interactions on the Activity where it belongs.
public class ExcellentAdventure {
@Retention(SOURCE)
@StringDef({ERA_BC, ERA_AD})
public @interface Era {
}
public static final String ERA_BC = "BC";
public static final String ERA_AD = "AD";