Skip to content

Instantly share code, notes, and snippets.

@codejunk1e
Last active June 23, 2020 00:33
Show Gist options
  • Save codejunk1e/f726786ecfd7fdbce8efb19d7f2d4e6b to your computer and use it in GitHub Desktop.
Save codejunk1e/f726786ecfd7fdbce8efb19d7f2d4e6b to your computer and use it in GitHub Desktop.
StringDef file template for Android
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class ${INTERFACE_NAME}s {
public static final String placeholder = "placeholder_value";
@StringDef({placeholder})
@Retention(RetentionPolicy.SOURCE)
public @interface ${INTERFACE_NAME} {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment