Suppor tAnnot at i onsCheatSheet Addi ngGr adl edependency dependencies { compile '' }

Nul l nessannot at i ons

Resour ceannot at i ons

Thr eadannot at i ons

Val ueannot at i ons

@NonNull @Nullable

@StringRes @DrawableRes @DimenRes @ColorRes @InterpolatorRes

@UiThread @MainThread @WorkerThread @BinderThread

@IntRange @FloatRange @Size

Cal l Superannot at i ons

Per mi ssi onannot at i ons


@RequiresPermission(Manifest.permission.) @RequiresPermision(allOf = { Manifest.permission., Manifest.permission.})

Check Resul t sannot at i ons @CheckResult(suggest="#enforcePermission(String,int,int,String)")

Enumer at edannot at i ons @IntDef @StringDef EXAMPLE: //Define the list of accepted constants @IntDef({NAVIGATION_MODE_STANDARD, NAVIGATION_MODE_LIST, NAVIGATION_MODE_TABS}) //Tell the compiler not to store annotation data in the .class file @Retention(RetentionPolicy.SOURCE) //Declare the NavigationMode annotation public @interface NavigationMode {} //Declare the constants public static final int NAVIGATION_MODE_STANDARD = 0; public static final int NAVIGATION_MODE_LIST = 1; public static final int NAVIGATION_MODE_TABS = 2; //Decorate the target methods with the annotation @NavigationMode public abstract int getNavigationMode(); //Attach the annotation public abstract void setNavigationMode(@NavigationMode int mode);

v 1. 0, 8/ 14/ 16

Untitled - GitHub

Page 1.

4MB Sizes 4 Downloads 257 Views

Recommend Documents

Untitled - GitHub
FS_PWR. 40 en es ez co zao z. FS PWR a ce seleco. EN. 8MHz. L". R14. 22. 24 Har. 100n 100n. 100n 100n 100n. 100n 100n. 100n. 100n. 100n. 100n 100n. 100n. 100n 100n. 100n. 100n. 100n. 100n 100n 100n. STMPS2141STR. ES DE R15 m. IFS D+. 4,7uF FS_D-. 22o

Untitled - GitHub
Page 1. Page 2. Page 3. Page 4.