Why do we need to call setContentView() in onCreate() of Activity class? Flashcards
1
Q
Questions
A
OnCreate is called only once in the activity lifecycle
so, we set the view only once
Android > Why do we need to call setContentView() in onCreate() of Activity class? > Flashcards
Questions
OnCreate is called only once in the activity lifecycle
so, we set the view only once