Reputation: 1600
Basically I want one class to hold 3 separate Views
on one screen.
I would like the top half of the screen to display a panoramic View
(which I have defined in Panorama.java), and the bottom half will be split in half vertically and have 2 separate Views
on them. On the left I would have my map class(CampusMap.java) and on the right I would have my other Activity
(CampusTour.java).
Is this possible? If so, how would I implement it?
Upvotes: 0
Views: 53
Reputation: 34534
Fragments may be what you are looking for.
You can have multiple fragments on the same screen at the same time.
Upvotes: 2
Reputation: 663
Fragments my friend...the answer you seek is Fragments...
They are basically modular code blocks that consist of an XML file married to Java code. They can be populated inside of a single container view, have work done to them via the container or via their own code, and can be removed and added at run time
Upvotes: 0
Reputation: 10190
you can only run one activity at a time. You probably looking to implement three views
in a single layout.
Upvotes: 0