Last active
June 23, 2020 00:33
-
-
Save codejunk1e/f726786ecfd7fdbce8efb19d7f2d4e6b to your computer and use it in GitHub Desktop.
StringDef file template for Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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