Android: How to swipe between activities (not fragments), master/detail best set-up

后端 未结 4 587
猫巷女王i
猫巷女王i 2021-02-06 17:11

I\'m working on an android app and I\'m fairly new to all this, including mobile app development, so I have a few questions. Any help would be amazing!

1) Is it possible

4条回答
  •  [愿得一人]
    2021-02-06 17:34

    Is it possible to swipe between entire activities (including action bar)? 
    

    No you cant, you can only do it with Fragments not with Activities.

    What is the best way to implement a master/detail type layout?
    

    You can use fragment and just add it to the current layout. Another solution is to create a dialog that will have layout.

    Is there a way to have different action bars for every fragment?
    

    Only activity can have ActionBar but you can still make your own ActionBar by creating it using layout and inflate it to the fragment.

提交回复
热议问题