Kotlin Mastery
Open main menu
About
Roadmap
Login
Loading...
Fragment
1
Explain the concept of a Fragment in Android and describe how it differs from an Activity in terms of lifecycle, functionality, and use cases.
2
Describe the lifecycle methods of a Fragment.
3
Explain the different methods for passing data between an Activity and a Fragment.
4
Describe the strategies for communicating between multiple Fragments within an Activity.
5
How do you handle Fragment rotation and configuration changes?
6
Describe the difference between adding a Fragment to the back stack using addToBackStack() and replacing a Fragment using replace(), including the implications for navigation and Fragment lifecycle.
7
Explain how to manipulate the Fragment back stack to achieve specific navigation behaviours.
8
Describe a Fragment's lifecycle when it is popped from the back stack.
9
Explain what happens to a Fragment's state when it is removed from the back stack.
10
How do you normally handle Fragment state and data when navigating back and forth through the back stack?