Android Application Development (AND-401) — Question 72
Which of these is NOT recommended in the Android Developer's Guide as a method of creating an individual View?
Answer options
- A. Create by extending the android.view.View class.
- B. Create by extending already existing View classes such as Button or TextView.
- C. Create by copying the source of an already existing View class such as Button or TextView
- D. Create by combining multiple Views.
Correct answer: C
Explanation
Option C is the correct answer because copying the source code of existing View classes can lead to maintenance issues and is against best practices. Options A, B, and D are recommended methods for creating Views, as they promote code reuse and proper inheritance.