Interview Questions
Here are some questions to ask yourself to ensure that you have a good understanding of fragments in Android:
- What is the parent class of
Fragment
? - How is a fragment like an activity?
- How is a fragment different from an activity?
- What is a back stack used for?
- Can you have an application that does not use a back stack?
- True or false: rolling back a
FragmentTransaction
restores an application to its prior state. - How does a
<fragment>
tag specify which fragment to use? - Do you attach the data adapter to the
ListFragment
, or to theListView
within theListFragment
? - What are the different ways to find an existing fragment running in your application?
- What is an interpolator, and what is it used for?
- List some of the view dimensions ...
Get Pro Android 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.