@Nullable이란 널을 허용하는 필드 혹은 파라미터에 정의해 주는 어노테이션.
반대로는 @NotNull, @NonNull이 있다.
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState){...}
'Mobile > Android Studio' 카테고리의 다른 글
[Do it! 안드로이드 앱 프로그래밍] 02 레이아웃 익히기 (0) | 2022.07.18 |
---|