AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 17


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

Show Answer
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

2 comments
Sign in to comment
MmadiOption: B
Dec 31, 2022

B. False

sim9Option: B
Mar 30, 2023

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.