OsmAnd/OsmAndCore-sample/res/layout/activity_main.xml
2016-11-16 18:57:43 +03:00

106 lines
4 KiB
XML
Executable file

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="net.osmand.core.samples.android.sample1.MainActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="@drawable/bg_contextmenu_shadow"
android:foregroundGravity="top|fill_horizontal">
<net.osmand.core.android.AtlasMapRendererView
android:id="@+id/mapRendererView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"/>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp">
<ImageButton
android:id="@+id/map_azimuth_north_button"
android:layout_width="52dp"
android:layout_height="52dp"
android:background="@drawable/btn_circle"
android:contentDescription="@string/azimuthNorth"
android:src="@drawable/map_compass_niu"/>
</FrameLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|left"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp">
<ImageButton
android:id="@+id/search_button"
android:layout_width="52dp"
android:layout_height="52dp"
android:background="@drawable/btn_circle"
android:contentDescription="@string/shared_string_search"
android:src="@drawable/map_search_dark"/>
</FrameLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:layout_marginBottom="10dp"
android:layout_marginRight="10dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/text_zoom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="10"
android:textColor="#000"
android:textSize="18sp"
android:textStyle="bold"/>
<ImageButton
android:id="@+id/map_zoom_in_button"
android:layout_width="52dp"
android:layout_height="52dp"
android:layout_marginTop="10dp"
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomIn"
android:src="@drawable/map_zoom_in"/>
<ImageButton
android:id="@+id/map_zoom_out_button"
android:layout_width="52dp"
android:layout_height="52dp"
android:layout_marginTop="10dp"
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomOut"
android:src="@drawable/map_zoom_out"/>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
</LinearLayout>