Android Application Development (AND-401) — Question 65

You can create a custom view by extending class:

Answer options

Correct answer: C

Explanation

The correct answer is C, as extending android.view.View allows you to create a custom view in Android. Options A and B are not suitable for creating a custom view because they are specific types of views rather than the base view class. Option D, android.content.Context, is not a view class and is used for providing application context.