Câu hỏi phỏng vấn Android
Câu hỏi

What is View Group? How are they different from Views?

Câu trả lời

A ViewGroup is a special type of View that acts as an invisible container for holding and managing other View and ViewGroup objects. It provides the structure and layout for organizing multiple child views within it[1][2][3].

The key differences between View and ViewGroup are:

  • A View represents a single UI component or widget, such as a button, text field, or image. ViewGroups are containers that hold multiple child views[1][3].
  • Views are used to display and interact with user interface elements. ViewGroups provide the layout and positioning for organizing views[1][2].
  • Examples of Views include TextView, Button, and ImageView. Examples of ViewGroups include LinearLayout, RelativeLayout, and FrameLayout[1][3].
  • Views can be added directly to a layout file or programmatically. ViewGroups can contain multiple child views and o...
junior

junior

Gợi ý câu hỏi phỏng vấn

senior

What is a ThreadPool ? And is it more effective than using several separate Threads ?

junior

Explain activity lifecycle

middle

What is the difference between AsyncTask and Thread/Runnable ?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào