This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes Have ways for remain previous layout in all pages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Have ways for remain previous layout in all pages?" Watch "Have ways for remain previous layout in all pages?" New topic
Author

Have ways for remain previous layout in all pages?

fahimeh hashemian
Ranch Hand

Joined: Aug 07, 2012
Posts: 84
I want to create an application that have 5 buttons in bottom of page, when user clicks on the any button, the page will changes but 5buttons remain in bottom of page. now i create this program but when i call setContentView() in other class becuase i call other layout, buttons removed. have ways for remain 5buttons? or i should create 5buttons again in 5layout?

Thanks
Cheers
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
If the other layout should show the buttons, then, yes - it needs to contain those buttons.

Maybe using a TabActivity/TabLayout would be a suitable GUI design.


Ping & DNS - my free Android networking tools app
fahimeh hashemian
Ranch Hand

Joined: Aug 07, 2012
Posts: 84
I find how to create this but when i use merge and include tag in xml file, the program has errors.What is the problem?

Activity_main.xml




location.xml

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
What is the problem?

Impossible to say, because we have no idea what "the program has errors" means: TellTheDetails.
 
 
subject: Have ways for remain previous layout in all pages?