OsmAnd/OsmAnd/res/layout/map_hud_widget.xml

134 lines
5.7 KiB
XML
Raw Normal View History

2015-03-11 20:19:24 +01:00
<?xml version="1.0" encoding="utf-8"?>
2017-10-14 21:52:52 +02:00
<LinearLayout
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2017-10-14 21:52:52 +02:00
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2015-03-14 23:30:53 +01:00
android:id="@+id/widget_bg"
2015-03-19 18:28:48 +01:00
android:layout_width="match_parent"
2015-03-11 20:19:24 +01:00
android:layout_height="wrap_content"
android:background="@drawable/btn_left_round"
2015-04-22 00:47:42 +02:00
android:minWidth="@dimen/map_minwidth_widget"
2017-10-14 21:52:52 +02:00
android:orientation="vertical">
2015-03-11 20:19:24 +01:00
2015-03-19 18:28:48 +01:00
<FrameLayout
android:layout_width="wrap_content"
2016-08-22 11:15:25 +02:00
android:layout_height="wrap_content"
2017-10-14 21:52:52 +02:00
android:layout_gravity="center_horizontal">
2015-03-19 18:28:48 +01:00
2015-04-15 09:21:22 +02:00
<TextView
android:id="@+id/widget_top_icon_text"
2015-03-19 18:28:48 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
2015-04-15 09:21:22 +02:00
android:layout_marginTop="2dp"
2017-10-14 21:52:52 +02:00
android:gravity="center"
2015-03-19 18:28:48 +01:00
android:textColor="@color/color_black"
android:textSize="@dimen/map_widget_text_size"
2017-10-14 21:52:52 +02:00
android:visibility="gone"/>
2015-04-15 09:21:22 +02:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2015-03-19 18:28:48 +01:00
android:id="@+id/widget_top_icon"
android:layout_width="@dimen/map_widget_image"
android:layout_height="@dimen/map_widget_image"
android:layout_gravity="center"
2017-10-14 21:52:52 +02:00
android:layout_marginTop="2dp"
2016-08-22 11:15:25 +02:00
android:gravity="center"
osmand:srcCompat="@drawable/ic_action_remove_dark"
2017-10-14 21:52:52 +02:00
android:visibility="gone"/>
2015-03-19 18:28:48 +01:00
</FrameLayout>
2015-03-11 20:19:24 +01:00
<LinearLayout
2017-10-14 21:52:52 +02:00
android:id="@+id/widget_bottom_layout"
2015-03-11 20:19:24 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="@dimen/map_widget_height"
2017-10-14 21:52:52 +02:00
android:orientation="horizontal">
2015-03-11 20:19:24 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2015-03-19 18:28:48 +01:00
android:id="@+id/widget_icon"
2015-03-11 20:19:24 +01:00
android:layout_width="@dimen/map_widget_icon"
android:layout_height="@dimen/map_widget_icon"
2020-02-24 15:17:23 +01:00
android:layout_gravity="start|center_vertical"
2015-04-14 18:03:30 +02:00
android:layout_marginLeft="@dimen/map_widget_icon_margin"
2016-08-25 21:59:56 +02:00
android:layout_marginRight="@dimen/map_widget_icon_margin"
2015-03-19 18:28:48 +01:00
android:gravity="center"
osmand:srcCompat="@drawable/ic_action_remove_dark"
2020-02-24 15:17:23 +01:00
android:layout_marginEnd="@dimen/map_widget_icon_margin"
android:layout_marginStart="@dimen/map_widget_icon_margin" />
2015-03-11 20:19:24 +01:00
2015-04-15 09:21:22 +02:00
<FrameLayout
2017-10-14 23:21:28 +02:00
android:layout_width="wrap_content"
2015-03-11 20:19:24 +01:00
android:layout_height="wrap_content"
2017-10-14 23:21:28 +02:00
android:layout_gravity="center_vertical"
android:layout_marginEnd="4dp"
2016-08-25 21:59:56 +02:00
android:layout_marginLeft="@dimen/map_widget_icon_margin"
2017-10-14 23:21:28 +02:00
android:layout_marginRight="4dp"
android:layout_marginStart="@dimen/map_widget_icon_margin">
2015-03-19 18:28:48 +01:00
2017-10-14 23:21:28 +02:00
<RelativeLayout
2015-04-15 09:21:22 +02:00
android:layout_width="wrap_content"
2017-10-14 23:21:28 +02:00
android:layout_height="wrap_content">
2015-04-15 09:21:22 +02:00
2017-10-14 23:21:28 +02:00
<TextView
android:id="@+id/widget_text_shadow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/map_widget_icon_margin"
android:layout_marginRight="@dimen/map_widget_icon_margin"
android:maxLines="1"
android:minWidth="10dp"
android:textColor="@color/color_white"
android:textSize="@dimen/map_widget_text_size"
tools:text="1048"/>
2015-04-15 09:21:22 +02:00
2017-10-14 23:21:28 +02:00
<TextView
android:id="@+id/widget_text_small_shadow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/widget_text_shadow"
android:layout_marginLeft="4dp"
android:layout_marginStart="4dp"
android:layout_toEndOf="@+id/widget_text_shadow"
android:layout_toRightOf="@+id/widget_text_shadow"
android:maxLines="1"
android:textColor="@color/color_white"
android:textSize="@dimen/map_widget_text_size_small"
tools:text="km"/>
</RelativeLayout>
2015-04-15 09:21:22 +02:00
2017-10-14 23:21:28 +02:00
<RelativeLayout
2015-04-15 09:21:22 +02:00
android:layout_width="wrap_content"
2017-10-14 23:21:28 +02:00
android:layout_height="wrap_content">
<TextView
android:id="@+id/widget_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/map_widget_icon_margin"
android:layout_marginRight="@dimen/map_widget_icon_margin"
android:maxLines="1"
android:minWidth="10dp"
android:textColor="@color/color_black"
android:textSize="@dimen/map_widget_text_size"
tools:text="1048"/>
<TextView
android:id="@+id/widget_text_small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/widget_text"
android:layout_marginLeft="4dp"
android:layout_marginStart="4dp"
android:layout_toEndOf="@+id/widget_text"
android:layout_toRightOf="@+id/widget_text"
android:maxLines="1"
android:textColor="@color/color_black"
android:textSize="@dimen/map_widget_text_size_small"
tools:text="km"/>
</RelativeLayout>
2017-10-14 21:52:52 +02:00
2015-04-15 09:21:22 +02:00
</FrameLayout>
2017-10-14 21:52:52 +02:00
2015-03-11 20:19:24 +01:00
</LinearLayout>
</LinearLayout>