0

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?

4

3 に答える 3

2

Fragments may be what you are looking for.

You can have multiple fragments on the same screen at the same time.

于 2012-07-18T19:10:56.703 に答える
0

一度に実行できるアクティビティは1つだけです。viewsおそらく、1つのレイアウトで3つを実装しようとしています。

于 2012-07-18T19:04:16.420 に答える
0

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

于 2012-07-18T19:09:53.410 に答える