Is it possible to use or add a fragment without using a user interface?

1 votes
166 views
Anonymous User asked 10-Jan-2018 in Technology by Anonymous User

Is it possible to use or add a fragment without using a user interface?

1 Answer

0 votes
Prateek sharma answered 11-Jan-2018 by Prateek sharma
yes, it is possible to add fragment without a user interface. This can be done when the user wants to create a background behaviour for an activity. you can do this by simply using the method add(Fragment, string) from an activity.