Why Fragments, and when to use Fragments instead of Activities?
Why Fragments, and when to use Fragments instead of Activities?
Here is a detailed answer to your Android interview question about Fragments:
Fragments were introduced in Android 3.0 (Honeycomb) to provide a modular approach to building Android user interfaces. Fragments allow you to encapsulate a portion of the UI and its behavior into reusable, self-contained components. This provides several key benefits:
Here are some common scenarios where using Fragments is preferred over using Activities:
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.