Questions tagged [fragment-transitions]

51 questions
1
vote
1 answer

Fix blink in Fragments during addSharedElement() transition

I use the next code in Fragment A: fragmentManager!! .beginTransaction() .addSharedElement(viewHolder.characterImage, ViewCompat.getTransitionName(viewHolder.characterImage)) .addToBackStack(TAG) …
1
vote
1 answer

Fragment transition appears from right to left, disappears from left to right (back to the point it starts from)

I want to reach a specific fragment transition behaviour ,as I mention in the question, I want my fragment to appears from the right and disappears in the same direction back to the point it starts from.. These are my xml animations…
1
vote
2 answers

Mvvmcross Android Fragment (ShowViewModel) Custom Animation effect (swipe)

I have a problem with override Custom Animation on my Fragment. I have on my Home view three buttons (First, Second and Third) and when I'm inside this views I want swipe between those view and I need swipe animation effect from left to right and…
1
vote
1 answer

Using fragment.setEnterTransition works but the same animation occurs on Exit as well, although i have not set any exitTransition

Following code works for enter animation and exit animation as well, i do not want it to animate on exit. What am i doing wrong here. ? MyProfileFragment profileFragment = new MyProfileFragment(); FragmentTransaction ft =…
Bawa
  • 876
  • 10
  • 28
1
vote
3 answers

How to replace more than one fragments with another one in the back stack?

I have the following fragments in the back stack A, B, C. Then I want to add fragment D, but in the back stack I want to put A and D instead of A, B, C, D. The problem is when I try to remove B and C with transaction.remove(), the…
X-HuMan
  • 1,488
  • 1
  • 17
  • 37
1
vote
1 answer

HashMap Store and Restore onSaveInstanceState from Fragment to another Activity

Need to restore markers which are stored in HashMap markers; when fragment is opened back from another activity. This is what i tried: HashMap markers; //.. @Override public View…
1
vote
1 answer

How to animate shared element ImageView from ListView fragment to detail view fragment in a master/detail pane layout

My application tablet layout contains a grid view (RecyclerView) on the left containing a grid of images, and a details view on the right which displays a smaller version of the currently selected grid view image along with additional text views…
1
vote
2 answers

android fragment not showing the previous position after transaction

Let us consider that i have 2 fragment a & b Fragment a contains view pager, horizontal grid view and buttons images etc with scroll. When i click a item in Fragment a it goes to fragment b and when i click on back button in fragment b it comes…
Sree
  • 3,136
  • 2
  • 31
  • 39
1
vote
2 answers

Shared element transitions - fragments

I have pushed my sample app here: https://bitbucket.org/user1010/transitiondemo I am following master-detail pattern in my app. Master fragment (MyRecyclerFragment / MyListFragment) shows a list of textviews. When user clicks on any of those…
1
vote
1 answer

Need help on shared element Fragment Transitions

I need help regarding Fragment to fragment transitions. I am not clear on how to do it properly as there is little documentation i could find. I have a GridView with movie posters.When one poster is clicked it will move to the next fragment.The…
0
votes
1 answer

Android : getting error in FragmentTransaction , beginTransaction method

I have learning about Fragment , when i try to change Fragment via clicks Button , and App is Force Stopped , its gives error like this Error message in Logcat : E/AndroidRuntime: FATAL EXCEPTION: main Process: mb.ganesh.fragment_practices,…
Ganesh MB
  • 1,109
  • 2
  • 14
  • 27
0
votes
1 answer

Animate fragment slideup and slide down

I want to slide up a fragment on its entry and slide down it on its exit. It should be pretty simple but I am facing issues. Animation code : Slide Down - >
Parth Anjaria
  • 3,961
  • 3
  • 30
  • 62
0
votes
1 answer

fragment to fragment animation with shared element don't work as expected

In an AppCompatActivity with a RecyclerView in a fragment (myFragment1), viewholders and so on, so if I click on an item, then myFragment2 will show and display the detail of the item. In this phase, I want to create an animation between the two…
Phantom Lord
  • 572
  • 3
  • 13
0
votes
0 answers

Why image don't hide when I set INVISIBLE?

I am trying to use FragmentTransition library of bherbst in github: FragmentTransitionSample But I want image in DetailFragment invisible when transition end, so I listen this event in GridFragment and set image invisible: @Override public void…
PhongVH
  • 51
  • 8
0
votes
0 answers

GLSurfaceView turns black during fragment transition

In one fragment in my app, I use a GLSurfaceView to render a 3d model. When this Fragment is visible, the user can navigate to another Fragment from it. While that Fragment transition happens, the whole GLSurfaceView turns black. I started having…
Joakim
  • 3,224
  • 3
  • 29
  • 53