cj1098
cj1098

Reputation: 1600

creating a class that holds 3 separate views

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

Answers (3)

prolink007
prolink007

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

user1449018
user1449018

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

Vinay W
Vinay W

Reputation: 10190

you can only run one activity at a time. You probably looking to implement three views in a single layout.

Upvotes: 0

Related Questions