I have a basic problem but Google is not yielding many results for me (well not english ones anyways). Basically all I want to do is this:
I have a graphic I need to use as a persistent header across the App, as in: I cant have it slide off the screen on new intent calls even if it just comes back in the new view, the client will complain hardcore because the iPhone version of this App doesn’t do that.
So basically I’m thinking of something like how TabHost works but without tabs. Is there a way to create a new Layout File to be loaded as the main with a LinearLayout in it, have the graphic up top, and then nest an “intent” or “activity” in another element in the layout file?
Google probably isn’t yielding me any results because I’m probably using the wrong terminology here, but any help on this matter would be incredible!
Thanks!
EDIT:
I’m sorry i should mention that this needs to be 2.3.3 (Gingerbread) compatible. I’m hearing about “Fragments” and I see they got introduced in ADK3 🙁
Framgent or Fragment compatiblibity package will work for you . even no need to search on google because Fragment Example of ApiDemoes will be enough to get idea .
Main Activity should have 1 Header View and one Fragment Placeholder . then push, pop fragments in this place holder .
One more Way hitting to my head is :
Create a
TabWidgetwith 1 tab . its view will be static header and add an activity group to content . now moving portion fo screen will be child of anActivityGroup.