Top "Fragmenttransaction" questions

FragmentTransaction is an API for performing a set of Fragment operations.

Replacing a fragment with another fragment of the same class

I have a fragment (let's call it MyFragment) that inflates different layouts according to a parameter passed in the arguments. …

android android-fragments fragmenttransaction
IllegalStateException: Fragment already added - during app startup on Android OS 4.3

My Android app has a single activity with a tab controller hosting 4 tabs – each tab is represented by a Fragment. …

android android-fragments android-viewpager fragmenttransaction fragmentstatepageradapter
Fragment onCreateView and onActivityCreated not being called on rotation

I am working with fragments and pushing new fragments on the backstack but when I rotate the device twice the …

android android-fragments fragmenttransaction
How to add a fragment to a layout of a DialogFragment?

I am having a custom DialogFragment which contains a layout, some UI elements, and a Fragment holder layout. What I …

android android-layout android-fragments android-dialogfragment fragmenttransaction
Android: Getting white screen with fragment transaction

I am making a news app where I have a fragment that holds all the news in a list and …

java android android-fragments fragment fragmenttransaction
FragmentTransaction before and after setCustomAnimation callback

I'm using a custom animation to replace fragments, and I'd like to disable some buttons when the animation starts and …

android android-fragments fragmenttransaction