<?xml version="1.0" encoding="utf-8"?>

<ScrollView android:id="@+id/ScrollView01"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        xmlns:android="http://schemas.android.com/apk/res/android";>

<LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="10px">

<RelativeLayout
        android:gravity="center_vertical"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <TextView
                android:id="@+id/UserLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="13px"
                android:text="@string/userlabel"/>
        <TextView
                android:id="@+id/User"
                android:layout_alignBaseline="@id/UserLabel"
                android:layout_alignParentRight="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
</RelativeLayout>

<RelativeLayout
        android:gravity="center_vertical"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <TextView
                android:id="@+id/PermissionLabel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="13px"
                android:text="@string/perlabel"/>
        <TextView
                android:id="@+id/Permission"
                android:layout_alignBaseline="@+id/PermissionLabel"
                android:layout_alignParentRight="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
</RelativeLayout>

<View
        android:layout_gravity="center_horizontal"
    android:layout_width="fill_parent"
        android:layout_height="1dip"
        android:background="#808080"
        android:layout_marginTop="5px"
        android:layout_marginBottom="10px"/>

<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/mapview"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="true"
    android:apiKey="mykey xD"
/>

<View
        android:layout_gravity="center_horizontal"
    android:layout_width="fill_parent"
        android:layout_height="1dip"
        android:background="#808080"
        android:layout_marginTop="5px"
        android:layout_marginBottom="10px"/>

<RelativeLayout
        android:gravity="center_vertical"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <Button
                android:id="@+id/locate"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/locate"
                android:layout_marginTop="20px"
                android:width="100px"
                android:layout_marginLeft="40dip"/>
        <Button
                android:id="@+id/trace"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/trace"
                android:width="100px"
        android:layout_alignBaseline="@id/locate"
        android:layout_alignParentRight="true"
        android:layout_marginRight="40dip"/>
</RelativeLayout>

</LinearLayout>
</ScrollView>

also i added the permission and the library to the android manifest,
and i put my map key (i have  akey from another app)




On 17 nov, 13:31, Carlos Silva <[email protected]> wrote:

On 17 nov, 13:31, Carlos Silva <[email protected]> wrote:
> How is your layout file?
>
> On Wed, Nov 17, 2010 at 12:29, Pableras <[email protected]> wrote:
> > i can't... im trying it but i can't create a mapview on the layout, it
> > does not exist, and i can do a include on a layout....
>
> > On 17 nov, 13:09, Carlos Silva <[email protected]> wrote:
> > > On Wed, Nov 17, 2010 at 12:05, Pableras <[email protected]> wrote:
> > > > Hi
>
> > > > i need that my user interface haves 3 sections
>
> > > > NORTH SECTION: four textviews with info about a user
> > > > MIDDLE SECTION: a googlemap view with the position of the user
> > > > SOUTH SECTION: a textview with time of last position, and a button to
> > > > actualice the position (retrieving it from a database)
>
> > > > is this possible? i can't find any information about that on google or
> > > > android developers guide...
>
> > > Sure you can. Just make your layout like that and you're done.
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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