Exam AND-401 All QuestionsBrowse all questions from this exam
Question 17

A developer can create a custom view by extending class Activity.

    Correct Answer: B

    A developer cannot create a custom view by extending the class Activity. Custom views in Android are created by extending the View class or one of its subclasses, not the Activity class. The Activity class is used to handle the user interface and interactions within an app, but not to define custom views.

Discussion
sim9Option: B

By extending any View subclass we can create custom view. Like for edit text custom view extend subclass edit text view. Hence correct option is B.

MmadiOption: B

B. False