I am creating an application. in every screen of the application I have to add footer. If the orientation change to landscape then there should be no footer otherwise there should be footer. in that footer there should be three buttons. if i am in first page then first page will be in selected if i am in second page then second button should be selected. I want this type of functionality. To achieve this i can create a footer layout and add in the xml of every screen but i want to select the buttons depending on the page and also hide or show the footer depending on the orientation. How can I achieve this?
Thanks
Sunil
To deal with showing/hiding the footer I do this at the end of my
onCreatemethod:if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE){
footer.setVisibility(View.GONE);
}
To deal with selecting the button just add a line of code that selects the appropriate button based on the activity.