Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

ContentView

public abstract @interface ContentView
implements Annotation

androidx.annotation.ContentView


Annotation that can be attached to a constructor with a single LayoutRes parameter to denote what layout the component intends to inflate and set as its content.

It is strongly recommended that components that support this annotation specifically call it out in their documentation.

 public class MainFragment extends Fragment {
     public MainFragment() {
         // This constructor is annotated with @ContentView
         super(R.layout.main);
     }
 }
 

Summary

Inherited methods