Suppose MyView is a class derived from View and mView is a variable of type MyView. Which of the following should be used to display mView when the Android application is started?

Question:Suppose MyView is a class derived from View and mView is a variable of type MyView. Which of the following should be used to display mView when the Android application is started?

1.Call setCurrentView(mView) in the startApp() of the main application class.

2.Call setContentView(mView) in the startApp() of the main application class.

3.Call setContentView(mView) in the startApp() of the main application class.

4.Call setContentView(mView) in the onCreate() of the main application class.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!