Top "Fragmenttransaction" questions

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

How to add/remove Fragment on Button click?

At present I have got a "RELATIVE_LAYOUT" container which I am using for adding my fragment. I am using …

java android android-fragments fragmenttransaction fragmentmanager
Android Fragment - move from one View to another?

Can i first add a Fragment to a View, then "detach" it, and then "re-attach" it to another View? In …

android android-layout android-fragments android-fragmentactivity fragmenttransaction
android.R.id.content as container for Fragment

My situation is Activity A which contains Fragment B. I always implement it like this. Layout for Activity A: <?…

android android-layout android-fragments fragmenttransaction
Android - Making translations and objectAnimator on the same XML file

I've been trying to make a 3D Cube rotation effect while sliding from one fragment to another. First i was …

android fragmenttransaction
FragmentTransaction setTransition() for remove() doesn't change the transition previously set in replace()

So, first of all I create a new Fragment like this ft = fm.beginTransaction(); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); …

android android-fragments transition fragmenttransaction
FragmentTransaction not doing anything

I am learning fragments and below given is my first fragment program. A simple project where I have 2 screens. When …

android fragment fragmenttransaction
move Android fragment to a different container Can't change container ID of fragment

Here is what I would like my application to do on a tablet. Fragment (0) has some menu that would display …

android android-fragments viewgroup fragmenttransaction
An invisible layout behind the fragment is getting clicked:

I have created several fragments and I add the first fragment the following way: mainFragment = (MainFragment) MainFragment.create(); getSupportFragmentManager().beginTransaction() .…

android android-fragments fragmenttransaction fragmentmanager
Exit animation not working; FragmentTransaction custom animation does not work for hide

I use show/hide to display a fragment that takes up part of the screen. For some reason when the …

android android-fragments android-animation fragmenttransaction
What id to put in fragmentTransaction.replace() method argument?

I am trying to call fragment from fragment. I am using following code: Fragment fragment = new TeamDetails3(); FragmentTransaction fragmentTransaction = getFragmentManager().…

android android-fragments fragmenttransaction