242 lines
No EOL
10 KiB
XML
242 lines
No EOL
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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="wrap_content"
|
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
|
android:layout_gravity="bottom"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bottom_controls_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start">
|
|
|
|
<!-- ALARM -->
|
|
|
|
<FrameLayout
|
|
android:id="@+id/map_alarm_warning"
|
|
android:layout_width="@dimen/map_alarm_size"
|
|
android:layout_height="@dimen/map_alarm_size"
|
|
android:layout_gravity="bottom|start"
|
|
android:layout_marginBottom="@dimen/map_alarm_bottom_margin_land"
|
|
android:layout_marginLeft="@dimen/map_button_shadow_margin"
|
|
android:layout_marginStart="@dimen/map_button_shadow_margin">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/map_alarm_warning_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
osmand:srcCompat="@drawable/warnings_limit"/>
|
|
|
|
<TextView
|
|
android:id="@+id/map_alarm_warning_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textColor="@color/color_black"
|
|
android:textSize="@dimen/map_alarm_text_size"
|
|
android:textStyle="bold"
|
|
tools:text="60"/>
|
|
|
|
<TextView
|
|
android:id="@+id/map_alarm_warning_text_bottom"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:layout_marginBottom="@dimen/map_alarm_bottom_text_margin"
|
|
android:textSize="@dimen/map_alarm_bottom_text_size"
|
|
android:textStyle="bold"
|
|
tools:text="1.2 km"
|
|
tools:textColor="@color/color_black"/>
|
|
</FrameLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/map_app_mode_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginBottom="130dp"
|
|
android:layout_marginLeft="@dimen/map_button_margin"
|
|
android:layout_marginStart="@dimen/map_button_margin"
|
|
android:gravity="center_horizontal"
|
|
android:textSize="@dimen/map_button_text_size"
|
|
tools:text="13.88"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start">
|
|
|
|
<!-- PREPARATION SCREEN -->
|
|
|
|
<include
|
|
layout="@layout/recording_note_fragment"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start"
|
|
android:layout_marginBottom="@dimen/map_button_margin"
|
|
android:layout_marginLeft="@dimen/map_button_margin"
|
|
android:layout_marginStart="@dimen/map_button_margin"
|
|
android:layout_marginRight="@dimen/map_button_spacing_land"
|
|
android:layout_marginEnd="@dimen/map_button_spacing_land"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/map_menu_button"
|
|
android:layout_width="@dimen/map_button_size"
|
|
android:layout_height="@dimen/map_button_size"
|
|
android:background="@drawable/btn_round"
|
|
android:contentDescription="@string/backToMenu"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/map_route_info_button"
|
|
android:layout_width="@dimen/map_button_size"
|
|
android:layout_height="@dimen/map_button_size"
|
|
android:layout_marginLeft="@dimen/map_button_spacing_land"
|
|
android:layout_marginStart="@dimen/map_button_spacing_land"
|
|
android:background="@drawable/btn_round"
|
|
android:contentDescription="@string/layer_route"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/snap_to_road_image_button"
|
|
android:layout_width="@dimen/map_button_size"
|
|
android:layout_height="@dimen/map_button_size"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/btn_circle"
|
|
android:visibility="gone"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginBottom="@dimen/map_button_margin"
|
|
android:layout_weight="1">
|
|
|
|
<!-- RULER -->
|
|
|
|
<include layout="@layout/map_ruler" />
|
|
|
|
<!-- TRANSPARENCY -->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/map_transparency_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|center"
|
|
android:layout_marginBottom="@dimen/map_button_size"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.slider.Slider
|
|
android:id="@+id/map_transparency_slider"
|
|
android:layout_width="@dimen/map_trans_seek_size"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
|
android:id="@+id/map_horizontal_progress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="4dp"
|
|
android:layout_gravity="bottom"
|
|
android:max="100"
|
|
android:visibility="gone"
|
|
osmand:mpb_progressStyle="horizontal"
|
|
osmand:mpb_useIntrinsicPadding="false"
|
|
osmand:mpb_setBothDrawables="true"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal"
|
|
tools:progress="60"
|
|
tools:visibility="visible" />
|
|
|
|
</FrameLayout>
|
|
|
|
<!-- RIGHT BUTTONS -->
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginBottom="@dimen/map_button_margin"
|
|
android:layout_marginLeft="@dimen/map_button_spacing_land"
|
|
android:layout_marginStart="@dimen/map_button_spacing_land"
|
|
android:layout_marginEnd="@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:background="@drawable/btn_circle"
|
|
android:contentDescription="@string/shared_string_my_location"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_marginLeft="@dimen/map_button_spacing_land"
|
|
android:layout_marginStart="@dimen/map_button_spacing_land"
|
|
android:orientation="vertical">
|
|
|
|
<ImageButton
|
|
android:id="@+id/map_zoom_in_button"
|
|
android:layout_width="@dimen/map_button_size"
|
|
android:layout_height="@dimen/map_button_size"
|
|
android:background="@drawable/btn_circle"
|
|
android:contentDescription="@string/zoomIn"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/map_zoom_out_button"
|
|
android:layout_width="@dimen/map_button_size"
|
|
android:layout_height="@dimen/map_button_size"
|
|
android:layout_marginTop="@dimen/map_button_spacing_land"
|
|
android:background="@drawable/btn_circle"
|
|
android:contentDescription="@string/zoomOut"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<include
|
|
layout="@layout/move_marker_bottom_sheet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start"
|
|
tools:visibility="visible"/>
|
|
|
|
<include
|
|
layout="@layout/add_gpx_point_bottom_sheet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|start"
|
|
tools:visibility="visible"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/bottomFragmentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
</LinearLayout> |