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">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:layout_height="wrap_content"
|
2016-06-15 21:05:12 +02:00
|
|
|
android:background="@color/colorPrimary"
|
2016-06-28 22:31:20 +02:00
|
|
|
android:focusableInTouchMode="true"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
2016-06-15 21:05:12 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2016-06-25 15:30:00 +02:00
|
|
|
<LinearLayout
|
2016-06-25 10:43:54 +02:00
|
|
|
android:layout_width="48dp"
|
2016-06-25 15:30:00 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/searchProgressBar"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/searchIcon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_action_search_dark"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2016-06-25 10:43:54 +02:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/searchEditText"
|
2016-06-25 15:30:00 +02:00
|
|
|
android:layout_width="0dp"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:layout_height="match_parent"
|
2016-06-25 15:30:00 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginLeft="8dp"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:background="@null"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:hint="@string/search_hint"
|
|
|
|
android:lines="1"
|
|
|
|
android:textColor="@color/titleTextColor"
|
|
|
|
tools:text="Search request"/>
|
2016-06-25 15:30:00 +02:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/clearButton"
|
|
|
|
style="@style/Widget.AppCompat.ActionButton"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:contentDescription="@string/shared_string_close"
|
|
|
|
android:src="@drawable/ic_action_remove_dark"/>
|
|
|
|
|
2016-06-25 10:43:54 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/searchDetailsText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-06-25 15:30:00 +02:00
|
|
|
android:layout_marginLeft="56dp"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2016-06-15 21:05:12 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:lines="1"
|
|
|
|
android:textColor="@color/titleTextColor"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="City • Street"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
2016-06-15 21:05:12 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<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"
|
|
|
|
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="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>
|
|
|
|
|
|
|
|
<ListView
|
|
|
|
android:id="@android:id/list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/listBackgroundColor"
|
2016-06-25 10:43:54 +02:00
|
|
|
android:drawSelectorOnTop="true"
|
2016-06-15 21:05:12 +02:00
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|