I’m trying to create a layout that has a stationary footer with activities that slide behind it. I’ve been told to use Fragments, but that would mean that I would have to convert my already existing Activities to Fragments – right? Here is a diagram of what I’m trying to achieve: https://i.stack.imgur.com/16BeS.jpg
Share
What I think @TarunMaheshwari is trying to say is that instead of having 3 activities (eg. classes with
extends activity), replace it withextends fragment(obviously there are other minor changes you might have to make for the code to work) and then create a main activity (withextends FragmentActivity) that has the static footer you want which can call on the 3 different fragments.Recommended readings:
http://developer.android.com/guide/topics/fundamentals/fragments.html
http://android-developers.blogspot.ca/2011/02/android-30-fragments-api.html