forked from organicmaps/organicmaps
[android] Added routing action panel layout
This commit is contained in:
parent
db7f0add1b
commit
3e03f492ea
4 changed files with 70 additions and 0 deletions
4
android/res/drawable/ic_my_location.xml
Normal file
4
android/res/drawable/ic_my_location.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<vector android:height="18dp" android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0" android:width="18dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFFFF" android:pathData="M12,8c-2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4 -1.79,-4 -4,-4zM20.94,11c-0.46,-4.17 -3.77,-7.48 -7.94,-7.94L13,1h-2v2.06C6.83,3.52 3.52,6.83 3.06,11L1,11v2h2.06c0.46,4.17 3.77,7.48 7.94,7.94L11,23h2v-2.06c4.17,-0.46 7.48,-3.77 7.94,-7.94L23,13v-2h-2.06zM12,19c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7 7,3.13 7,7 -3.13,7 -7,7z"/>
|
||||
</vector>
|
|
@ -18,6 +18,11 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<include
|
||||
android:id="@+id/routing_action_frame"
|
||||
layout="@layout/routing_action_panel"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -37,6 +37,14 @@
|
|||
tools:layout_width="match_parent"
|
||||
tools:layout_height="@dimen/menu_line_height"
|
||||
tools:layout_marginTop="60dp"/>
|
||||
|
||||
<include
|
||||
android:id="@+id/routing_action_frame"
|
||||
layout="@layout/routing_action_panel"
|
||||
android:visibility="gone"
|
||||
tools:layout_width="match_parent"
|
||||
tools:layout_height="wrap_content"
|
||||
tools:layout_marginTop="60dp"/>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
|
53
android/res/layout/routing_action_panel.xml
Normal file
53
android/res/layout/routing_action_panel.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/height_block_base"
|
||||
android:background="?windowBackgroundForced">
|
||||
<TextView
|
||||
android:id="@+id/tv__message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toLeftOf="@+id/btn__my_position_use"
|
||||
android:layout_toStartOf="@id/btn__my_position_use"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body3"
|
||||
android:layout_marginLeft="@dimen/margin_base"
|
||||
android:layout_marginRight="@dimen/margin_base"
|
||||
tools:text="Add start point to plan a route."/>
|
||||
<LinearLayout
|
||||
android:id="@id/btn__my_position_use"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="@dimen/margin_half"
|
||||
android:paddingRight="@dimen/margin_half"
|
||||
android:paddingTop="@dimen/margin_quarter"
|
||||
android:paddingBottom="@dimen/margin_quarter"
|
||||
android:layout_marginRight="@dimen/margin_half"
|
||||
android:layout_marginEnd="@dimen/margin_half"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center"
|
||||
android:background="?clickableBackground"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
<ImageView
|
||||
android:id="@+id/iv__icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="@dimen/margin_half"
|
||||
android:layout_marginEnd="@dimen/margin_half"
|
||||
android:src="@drawable/ic_my_location"
|
||||
tools:tint="?android:colorAccent"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/MwmTextAppearance.Button"
|
||||
android:text="@string/use"/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
Loading…
Add table
Reference in a new issue