Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Create Fixed Navigation Bar For All Activities In An Android Application

i want to set a navigation bar ( with two buttons and a textview ) common for all activities of my application. I know it can be done by including a common layout file into each activity's layout file. But i have to use slide transition animation when a activity changes to another. Now if i follow the common layout file including process, then the navigation bar will also slide in or out with the activity's view where i want my navigation bar to be fixed when activities view slides in or out. Besides, the two buttons of the navigation bar should be set as i can hide them by using code to some activities. So now i need help badly on the problem, please give me a solution/suggestion/clue on the problem.Thanks in advance .....

like image 360
Junaid Avatar asked Jan 29 '26 13:01

Junaid


1 Answers

Perhaps Fragments may be what you are looking for in this scenario.

Or thinking about it further maybe ViewFlipper with multiple layouts could also help in this case.

like image 60
source.rar Avatar answered Feb 01 '26 02:02

source.rar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!