OsmAnd/OsmAndCore-sample/res/layout/activity_main.xml

118 lines
4.9 KiB
XML
Raw Normal View History

2016-06-15 21:05:12 +02:00
<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"
2016-06-25 10:43:54 +02:00
android:layout_height="match_parent"
android:focusable="true"
android:focusableInTouchMode="true"/>
2016-06-15 21:05:12 +02:00
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
2016-11-22 16:48:36 +01:00
android:layout_marginRight="@dimen/map_button_margin"
android:layout_marginTop="@dimen/map_button_margin">
2016-06-15 21:05:12 +02:00
<ImageButton
2016-11-22 16:48:36 +01:00
android:id="@+id/map_compass_button"
android:layout_width="@dimen/map_small_button_size"
android:layout_height="@dimen/map_small_button_size"
android:background="@drawable/btn_inset_circle_trans"
android:src="@drawable/map_compass"
android:visibility="gone"/>
2016-06-15 21:05:12 +02:00
</FrameLayout>
<FrameLayout
android:layout_width="wrap_content"
2016-11-15 17:57:42 +01:00
android:layout_height="wrap_content"
android:layout_gravity="top|left"
2016-11-22 16:48:36 +01:00
android:layout_marginLeft="@dimen/map_button_margin"
android:layout_marginTop="@dimen/map_button_margin">
2016-11-15 17:57:42 +01:00
<ImageButton
android:id="@+id/search_button"
2016-11-22 16:48:36 +01:00
android:layout_width="@dimen/map_small_button_size"
android:layout_height="@dimen/map_small_button_size"
android:background="@drawable/btn_inset_circle_trans"
2016-11-15 17:57:42 +01:00
android:contentDescription="@string/shared_string_search"
android:src="@drawable/map_search_dark"/>
</FrameLayout>
<FrameLayout
android:layout_width="wrap_content"
2016-06-15 21:05:12 +02:00
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
2016-11-22 16:48:36 +01:00
android:layout_marginBottom="@dimen/map_button_margin"
android:layout_marginRight="@dimen/map_button_margin">
<ImageButton
android:id="@+id/map_my_location_button"
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:layout_gravity="bottom"
android:layout_marginRight="@dimen/map_button_size_plus_spacing"
android:background="@drawable/btn_circle"
android:contentDescription="@string/shared_string_my_location"
android:src="@drawable/map_my_location"/>
2016-06-15 21:05:12 +02:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-11-22 16:48:36 +01:00
android:orientation="vertical"
android:layout_gravity="bottom|right">
2016-06-15 21:05:12 +02:00
<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"
2016-11-22 16:48:36 +01:00
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:layout_marginTop="@dimen/map_button_spacing"
2016-06-15 21:05:12 +02:00
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomIn"
android:src="@drawable/map_zoom_in"/>
<ImageButton
android:id="@+id/map_zoom_out_button"
2016-11-22 16:48:36 +01:00
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:layout_marginTop="@dimen/map_button_spacing"
2016-06-15 21:05:12 +02:00
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomOut"
android:src="@drawable/map_zoom_out"/>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/fragmentContainer"
2016-06-15 21:05:12 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"/>
2016-06-15 21:05:12 +02:00
</FrameLayout>
</LinearLayout>