Reputation: 1586
In iOS we can add subviews to UINavigationController view which will always stay visible across the application and do not slide with the views when they are pushed/popped.
I am trying to accomplish the same thing in Android but cannot see a way to do this. I've seen solutions like adding the view to every Activity but that does not give me the result I want.
What I am trying to do is to add an image for the footer which always is on the bottom across the application and does not slide with the activities when they are transitioned.
Upvotes: 2
Views: 485
Reputation: 40193
Modern Android navigation approach is based on using Fragments
inside a single host Activity
. This gives you the possibility to use the Activity
as a container for multiple Fragments
. Usually Fragments
will take all Activity
space, but in your case you can leave some place for views that should remain visible during the whole application lifecycle and use remaining space as the container for Fragments
. Hope the idea is clear.
Upvotes: 2