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?
Answers:• Call setCurrentView(mView) in the startApp() of the main application class.
• Call setContentView(mView) in the startApp() of the main application class.
• Call setContentView(mView) in the onStart() of the main application class.
• Call setContentView(mView) in the onCreate() of the main application class.
ANDROID UPWORK TEST ANSWERS
No comments:
Post a Comment