OsmAnd/OsmAnd/res/layout/map_hud_widget.xml

61 lines
2.4 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"
android:layout_width="match_parent"
2015-03-14 23:30:53 +01:00
android:id="@+id/widget_bg"
2015-03-11 20:19:24 +01:00
android:minWidth="100dp"
android:layout_height="wrap_content"
android:background="@drawable/btn_left_round"
2015-03-14 20:10:22 +01:00
android:orientation="vertical">
2015-03-11 20:19:24 +01:00
2015-03-15 12:42:31 +01:00
<ImageView
2015-03-14 20:10:22 +01:00
android:id="@+id/widget_top_icon"
2015-03-15 12:42:31 +01:00
android:layout_width="@dimen/map_widget_image"
2015-03-11 20:19:24 +01:00
android:layout_height="@dimen/map_widget_image"
android:layout_gravity="center"
android:src="@drawable/ic_action_close_light"
android:visibility="gone" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="@dimen/map_widget_height"
android:orientation="horizontal" >
<ImageView
android:layout_width="@dimen/map_widget_icon"
android:layout_height="@dimen/map_widget_icon"
2015-03-14 20:10:22 +01:00
android:id="@+id/widget_icon"
2015-03-11 20:19:24 +01:00
android:gravity="center"
android:layout_gravity="left|center_vertical"
2015-03-15 02:14:10 +01:00
android:src="@drawable/ic_action_remove_light"/>
2015-03-11 20:19:24 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-03-14 20:10:22 +01:00
android:id="@+id/widget_text"
2015-03-14 02:01:43 +01:00
android:layout_gravity="bottom"
android:layout_marginBottom="@dimen/map_widget_text_bottom_margin"
2015-03-11 20:19:24 +01:00
android:layout_weight="1"
2015-03-15 16:19:19 +01:00
android:minWidth="10dp"
2015-03-14 02:01:43 +01:00
android:maxLines="1"
android:shadowColor="@color/color_myloc_distance"
2015-03-11 20:19:24 +01:00
android:textColor="@color/color_black"
2015-03-14 02:01:43 +01:00
android:shadowRadius="10"
android:textSize="@dimen/map_widget_text_size"
android:text="1048" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-03-14 20:10:22 +01:00
android:id="@+id/widget_text_small"
2015-03-14 02:01:43 +01:00
android:layout_marginLeft="4dp"
android:layout_gravity="bottom"
android:layout_marginBottom="@dimen/map_widget_text_bottom_margin"
android:layout_marginRight="4dp"
android:maxLines="1"
android:shadowColor="@color/color_myloc_distance"
android:textColor="@color/color_black"
android:shadowRadius="10"
android:textSize="@dimen/map_widget_text_size_small"
android:text="km" />
2015-03-11 20:19:24 +01:00
</LinearLayout>
</LinearLayout>