replace(R.id.fragmentcontainer, ProfileFragment()) will:
- Add ProfileFragment on top of the existing one
- Remove the fragment(s) in that container and add ProfileFragment
- Hide the container
- Open a new activity
Answer
B) Remove the fragment(s) in that container and add ProfileFragment
replace = remove existing + add new.
Computer Science MCQ · More Windows Mobile, Eclipse and Fragments MCQs · Practise