Android FragmentTransaction: How to generate an overlay slide in and move existing Fragement to left

前端 未结 2 1641
囚心锁ツ
囚心锁ツ 2021-02-10 15:23

I\'m trying to do the following. Create a new Fragement B (Menu), slide it in from the right, and i want to move (no hide or replace!) the already shown Fragment A to the left.

2条回答
  •  既然无缘
    2021-02-10 16:27

    I'm not sure if this is exactly what you are looking for, but check out this Sliding Menu library... it allows one to slide in a fragment from the left or right while shifting the center content fragment.

提交回复
热议问题