OsmAnd/OsmAnd/res/layout/map_hud_bottom.xml

268 lines
11 KiB
XML
Raw Normal View History

2015-03-11 20:19:24 +01:00
<?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"
2016-12-28 16:33:40 +01:00
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical">
2015-03-11 20:19:24 +01:00
2016-12-28 16:33:40 +01:00
<!--<net.osmand.plus.quickaction.QuickActionsWidget
2016-12-23 18:45:08 +01:00
android:id="@+id/quick_action_widget"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-12-27 18:58:37 +01:00
tools:visibility="visible"
2016-12-23 18:45:08 +01:00
android:visibility="gone"/>
2016-12-27 18:58:37 +01:00
<FrameLayout
android:id="@+id/map_quick_actions_button_container"
2016-12-23 18:45:08 +01:00
android:layout_width="match_parent"
android:layout_height="0dp"
2016-12-27 18:58:37 +01:00
android:layout_weight="1"
android:padding="8dp"
android:animateLayoutChanges="true">
<ImageButton
android:id="@+id/map_quick_actions_button"
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:background="@drawable/btn_circle_blue"
android:contentDescription="@string/zoomIn"
android:layout_gravity="bottom|right"
android:visibility="gone"
tools:visibility="visible"
tools:src="@drawable/ic_action_test_light"/>
2016-12-28 16:33:40 +01:00
</FrameLayout>-->
2016-12-23 18:45:08 +01:00
2015-03-11 20:19:24 +01:00
<FrameLayout
2016-12-27 18:58:37 +01:00
android:id="@+id/bottom_controls_container"
2015-03-11 20:19:24 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2015-03-11 20:19:24 +01:00
2015-03-15 20:29:26 +01:00
<FrameLayout
android:id="@+id/map_alarm_warning"
2015-04-15 09:21:22 +02:00
android:layout_width="@dimen/map_alarm_size"
android:layout_height="@dimen/map_alarm_size"
2015-03-15 20:29:26 +01:00
android:layout_gravity="bottom|left"
2015-03-15 22:18:33 +01:00
android:layout_marginBottom="@dimen/map_alarm_bottom_margin"
android:layout_marginLeft="@dimen/map_button_shadow_margin">
2015-04-15 09:21:22 +02:00
2015-03-15 20:29:26 +01:00
<ImageView
android:id="@+id/map_alarm_warning_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/warnings_limit"/>
2015-04-15 09:21:22 +02:00
2015-03-15 20:29:26 +01:00
<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"/>
2018-02-06 13:37:30 +01:00
<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"/>
2015-03-15 20:29:26 +01:00
</FrameLayout>
2015-04-15 09:21:22 +02:00
<TextView
android:id="@+id/map_app_mode_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
tools:text="13.44"
android:layout_marginBottom="56dp"
android:layout_marginLeft="8dp"
2015-03-14 01:02:35 +01:00
android:layout_gravity="bottom|left"
android:textSize="@dimen/map_button_text_size"/>
2015-03-14 01:02:35 +01:00
2016-02-08 16:04:27 +01:00
<LinearLayout
android:id="@+id/map_transparency_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
2016-02-08 16:04:27 +01:00
android:layout_marginBottom="@dimen/map_button_size"
android:orientation="horizontal">
<SeekBar
android:id="@+id/map_transparency_seekbar"
android:layout_width="@dimen/map_trans_seek_size"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="6dp"
android:paddingRight="6dp"/>
2016-02-08 16:04:27 +01:00
<ImageButton
android:id="@+id/map_transparency_hide"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/btn_circle_transparent"
android:contentDescription="@string/shared_string_hide"
2016-02-08 16:04:27 +01:00
android:src="@drawable/headliner_close"/>
</LinearLayout>
2015-03-11 20:19:24 +01:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:layout_marginBottom="@dimen/map_button_margin"
android:layout_marginLeft="@dimen/map_button_margin">
2015-03-11 20:19:24 +01:00
<ImageButton
2015-03-14 01:02:35 +01:00
android:id="@+id/map_menu_button"
2015-03-11 20:19:24 +01:00
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_test_light"/>
2015-03-11 20:19:24 +01:00
<ImageButton
2015-03-14 01:02:35 +01:00
android:id="@+id/map_route_info_button"
2015-03-11 20:19:24 +01:00
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:layout_marginLeft="@dimen/map_button_spacing"
android:background="@drawable/btn_round"
android:contentDescription="@string/layer_route"
tools:src="@drawable/ic_action_test_light"/>
2015-04-15 09:21:22 +02:00
2017-08-17 09:55:59 +02:00
<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_test_light"/>
2015-03-15 20:29:26 +01:00
<FrameLayout
android:id="@+id/map_ruler_layout"
android:layout_width="@dimen/map_ruler_width"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="@dimen/map_button_margin">
2015-04-15 09:21:22 +02:00
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginBottom="@dimen/map_ruler_bottom_margin">
2015-04-15 09:21:22 +02:00
<TextView
2015-04-15 09:41:57 +02:00
android:id="@+id/map_ruler_text_shadow"
2015-04-15 09:21:22 +02:00
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="bottom"
android:gravity="center_horizontal"
2015-11-19 01:01:14 +01:00
android:lineSpacingMultiplier="0.9"
android:textSize="@dimen/map_widget_text_size_small"
tools:text="100 m"/>
2015-04-15 09:21:22 +02:00
<TextView
2015-04-15 09:41:57 +02:00
android:id="@+id/map_ruler_text"
2015-04-15 09:21:22 +02:00
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="bottom"
android:gravity="center_horizontal"
2015-11-19 01:01:14 +01:00
android:lineSpacingMultiplier="0.9"
android:textSize="@dimen/map_widget_text_size_small"
tools:text="100 m"/>
2015-04-15 09:41:57 +02:00
2015-04-15 09:21:22 +02:00
</FrameLayout>
<ImageView
2015-03-15 20:29:26 +01:00
android:id="@+id/map_ruler_image"
2015-04-15 09:21:22 +02:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/ruler"/>
2015-03-15 20:29:26 +01:00
</FrameLayout>
2015-03-11 20:19:24 +01:00
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:layout_marginBottom="@dimen/map_button_margin"
android:layout_marginRight="@dimen/map_button_margin">
2015-03-11 20:19:24 +01:00
<ImageButton
2015-03-11 23:44:55 +01:00
android:id="@+id/map_my_location_button"
2015-03-11 20:19:24 +01:00
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_test_light"/>
2015-03-11 20:19:24 +01:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="@dimen/map_button_spacing"
android:orientation="vertical">
2015-03-11 20:19:24 +01:00
<ImageButton
2015-03-11 23:44:55 +01:00
android:id="@+id/map_zoom_in_button"
2015-03-11 20:19:24 +01:00
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_test_light"/>
2015-03-11 20:19:24 +01:00
<ImageButton
2015-03-14 01:02:35 +01:00
android:id="@+id/map_zoom_out_button"
2015-03-11 20:19:24 +01:00
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:layout_marginTop="@dimen/map_button_spacing"
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomOut"
tools:src="@drawable/ic_action_test_light"/>
2015-03-11 20:19:24 +01:00
</LinearLayout>
</LinearLayout>
2018-05-30 14:20:50 +02:00
<ProgressBar
android:id="@+id/map_horizontal_progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
2018-05-30 14:20:50 +02:00
android:layout_gravity="bottom"
android:max="100"
android:visibility="gone"
tools:progress="60"
tools:visibility="visible" />
2015-03-11 20:19:24 +01:00
</FrameLayout>
2018-05-24 18:23:23 +02:00
<FrameLayout
2015-03-11 20:19:24 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2015-03-11 20:19:24 +01:00
<include layout="@layout/recording_note_fragment"
tools:visibility="gone"/>
<include layout="@layout/move_marker_bottom_sheet"
tools:visibility="gone"/>
2017-08-03 10:54:09 +02:00
<include layout="@layout/add_gpx_point_bottom_sheet"
2017-08-01 16:21:51 +02:00
tools:visibility="gone"/>
<FrameLayout
android:id="@+id/bottomFragmentContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
2016-02-08 16:19:52 +01:00
2015-03-11 20:19:24 +01:00
</FrameLayout>
</LinearLayout>