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

middle

When to use Fragment s vs Activitie s?

middle

How to declare Global variables in Android?

senior

What is a Sticky Broadcast ?

Bình luận

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

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