0

I would like to make the google maps viewable in another activity, that is, it does not take the entire screen. Is it possible to embed a google map map activty in another activity, so that, let's say, it takes half or 3/4 of the screen please?

Thanks in advance!

William
  • 55
  • 1
  • 8

2 Answers2

0

Try this:

http://mobiforge.com/developing/story/using-google-maps-android

You can use MapView as any other view - position and size as you like.

If you want to place MapView into ScrollView here is good solution to make sure it works correctly: MapView inside a ScrollView?

Community
  • 1
  • 1
Perry_ml
  • 495
  • 5
  • 16
0

You can include MapView in layout and code for the same in MapActivity with the portion you want for it.

Why do you want for it in another activity?

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
  • I basically have an activity which contains other information, and it wouldn't b ideal to have the map view on a seperate activity. do you mean including an inner layout inside the parent activity? – William Aug 07 '12 at 09:00
  • Can't you manage this *other information* inside MapActivity? – Paresh Mayani Aug 07 '12 at 09:03
  • Probably I can if the MapActivity extends Activity, however, I would need to resize the MapView itself. – William Aug 07 '12 at 09:04