by plusminus » Sat Mar 01, 2008 2:15 pm
Hello bluefloyd,
this is the code I use for AndNav to overlay two clickable button-style (ImageViews) over a MapView:
Using xml Syntax Highlighting
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<view class="com.google.android.maps.MapView"
android:id="@+id/map_map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
<ImageView
android:id="@+id/iv_map_zoomin"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/plus_32"/>
<ImageView
android:id="@+id/iv_map_zoomout"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/minus_32"/>
</RelativeLayout>
Parsed in 0.003 seconds, using
GeSHi 1.0.8.4
Regards,
plusminus


| Android Development Community / Tutorials