You have to use MapActivity to use MapView

On Jan 29, 6:16 am, ColletJb <[email protected]> wrote:
> Hi,
>
> I'm trying to develop an Activity using both ListView and MapView.
>
> Basically, the screen is spited into two parts, the first contains the
> MapView, and the second one contains ListView.
>
> Should I use an Activity, a ListActivity or a MapActivity ?
>
> Thank your for your help.
>
> Here is my layout :
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent">
>
>     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>             android:orientation="vertical"
>             android:layout_width="fill_parent"
>             android:layout_height="fill_parent"
>             android:layout_weight="0.25">
>
>                 <com.google.android.maps.MapView
>                         android:id="@+id/mapview"
>                     android:layout_width="fill_parent"
>                     android:layout_height="wrap_content"
>                     android:clickable="true"
>                         android:apiKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
>
>         </LinearLayout>
>
>         <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>             android:orientation="vertical"
>             android:layout_width="fill_parent"
>             android:layout_height="fill_parent"
>             android:layout_weight="0.75">
>
>                 <TextView
>                         android:text="My favorite places : "
>                     android:layout_width="fill_parent"
>                     android:layout_height="wrap_content" />
>
>                 <ListView
>                         android:id="@+id/mylist"
>                     android:layout_width="fill_parent"
>                     android:layout_height="wrap_content" />
>
>         </LinearLayout>
>
> </LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to