Android Annotation Summary
Annotation is structured metadata that can be added to Java source code.
@Nullable : null can be assigned to the parameter.
@NonNull : null is not assigned to the parameter.
@StringRes : Parameter refers to the resource R.string.
@DrawableRes : Parameter refers to the resource R.drawable.
@DimenRes : Parameter refers to resource R.dimen.
@ColorRes : Parameter refers to resource R.color.
@InterpolatorRes : Parameter refers to resource R.interpolator.
@AnyRes : Parameter refers to resource R.
@ColorInt : Parameter refers to a color integer.
@MainThread : Method operates on the main thread.
@UiThread : Method works on Ui Thread.
@WorkerThread : Method works on Worker Thread.
@BinderThread : Method is running on Binder Thread.
@AnyThread : Method works on any thread.
@IntRange : Specifies the range of int parameters.
@FloatRange : Specifies the range of float parameters.
@Size : Specify the size of the parameter array or the length of the String.
@RequiresPermission : Permission to use API.
@CheckResult : Check if the result value of the method is actually used.
@CallSuper : Check if the override method calls the parent(Super) implementation.
'Android' 카테고리의 다른 글
Kotlin KAPT(Kotlin Annotation Processing Tool) 이란 (0) | 2021.09.13 |
---|---|
[Android] PID(Process ID)/UID(User ID) ADB로 확인하는 방법 (0) | 2021.09.07 |
[Android] logcat chatty 로그가 제대로 출력되지 않을 때 expire 1 line (0) | 2021.09.07 |
Android adb command list (0) | 2021.09.07 |
List up Android version, SDK version, API level (0) | 2021.09.03 |
WifiNetworkSuggestion Example (0) | 2021.09.02 |
Android 버전, SDK 버전, API 수준 정리 (0) | 2020.07.27 |
Android adb 명령어 정리 (0) | 2020.05.19 |