1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainView"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<org.mapsforge.map.android.rotation.RotateView
android:id="@+id/rotateView"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<org.mapsforge.map.android.view.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</org.mapsforge.map.android.rotation.RotateView>
<org.mapsforge.samples.android.scalebar.MapScaleBarView
android:id="@+id/mapScaleBarView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dp" />
<ImageButton
android:id="@+id/zoomOutButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:background="@android:color/transparent"
android:src="@drawable/zoom_control_out" />
<ImageButton
android:id="@+id/zoomInButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/zoomOutButton"
android:layout_alignParentRight="true"
android:background="@android:color/transparent"
android:src="@drawable/zoom_control_in" />
<Button
android:id="@+id/rotateButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/zoomOutButton"
android:text="@string/rotate_button" />
<TextView
android:id="@+id/attribution"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/attribution_margin"
android:gravity="center"
android:singleLine="true"
android:text="@string/copyright_osm"
android:textColor="#000"
android:textSize="@dimen/attribution_size" />
</RelativeLayout>
|