Android Programming and Technical Programming Technical

Is it possible to have fragments without UI, in android?

Options
1) Fragment will never have any UI.
2) Fragment generally will contribute its UI by using its own layout, But it might not have UI in some cases, as it is not mandatory
3) Both option 1 & are right.
4) none of the above are true, Because fragments should always have its own layout and contribute its UI.

Read Solution (Total 2)

Android Other Question

How to return layout of a fragment? Which function to implement in Fragment class for it?

Options
1) onCreate()
2) onCreateView()
3) getView()
4) getFragmentView()
How to create an activity which has fragment with listview?

Options
1) use Activity, fragment, a layout which will have listview
2) use activity & a ListFragment
3) Use only Activity with a layout which is having a listview in it.
4) Use only a ListFragment with out any activity