OsmAnd/OsmAnd/res/layout/map_marker_item_new.xml

198 lines
8.8 KiB
XML
Raw Normal View History

2017-08-28 17:39:00 +02:00
<?xml version="1.0" encoding="utf-8"?>
2017-09-06 11:33:52 +02:00
<LinearLayout
2017-08-28 17:39:00 +02:00
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2017-09-06 11:33:52 +02:00
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:orientation="vertical">
2017-08-28 17:39:00 +02:00
<ImageView
2017-09-26 17:29:36 +02:00
android:id="@+id/top_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/bg_shadow_list_top"
2017-09-26 17:29:36 +02:00
android:visibility="gone"
tools:visibility="visible"/>
2017-09-26 17:29:36 +02:00
<LinearLayout
2017-09-13 15:41:31 +02:00
android:id="@+id/main_layout"
2017-08-28 17:39:00 +02:00
android:layout_width="match_parent"
2017-09-26 12:08:15 +02:00
android:layout_height="wrap_content"
android:background="?attr/bg_color"
android:orientation="vertical">
2017-08-28 17:39:00 +02:00
<LinearLayout
2017-09-13 15:41:31 +02:00
android:layout_width="match_parent"
2017-10-19 10:41:55 +02:00
android:layout_height="@dimen/map_button_shadow_width"
2017-09-13 15:41:31 +02:00
android:background="?attr/selectableItemBackground">
2017-10-25 13:05:14 +02:00
<android.support.v7.widget.AppCompatTextView
android:textSize="@dimen/default_list_text_size"
tools:text="3"
android:gravity="center"
android:id="@+id/map_marker_number_text_view"
android:layout_width="@dimen/map_button_shadow_width"
android:layout_height="@dimen/map_button_shadow_width"
android:layout_gravity="center_vertical"
android:visibility="gone"
tools:visibility="visible"/>
2017-09-13 15:41:31 +02:00
<android.support.v7.widget.AppCompatImageView
android:id="@+id/map_marker_reorder_icon"
2017-10-19 10:41:55 +02:00
android:layout_width="@dimen/map_button_shadow_width"
android:layout_height="@dimen/map_button_shadow_width"
2017-09-13 15:41:31 +02:00
android:layout_gravity="center_vertical"
2017-09-26 12:08:15 +02:00
android:scaleType="centerInside"
2017-09-13 15:41:31 +02:00
android:tint="?attr/secondary_icon_color"
tools:src="@drawable/ic_action_reorder"/>
2017-08-28 17:39:00 +02:00
2017-09-15 09:17:25 +02:00
<View
android:id="@+id/flag_icon_left_space"
2017-10-19 10:41:55 +02:00
android:layout_width="@dimen/content_padding"
2017-09-26 12:08:15 +02:00
android:layout_height="wrap_content"
android:visibility="gone"
tools:visibility="visible"/>
2017-09-15 09:17:25 +02:00
2017-09-13 15:41:31 +02:00
<android.support.v7.widget.AppCompatImageView
android:id="@+id/map_marker_icon"
2017-09-15 09:08:45 +02:00
android:layout_width="24dp"
android:layout_height="24dp"
2017-09-13 15:41:31 +02:00
android:layout_gravity="center_vertical"
2017-10-19 10:41:55 +02:00
android:layout_marginEnd="@dimen/bottom_sheet_content_margin"
android:layout_marginRight="@dimen/bottom_sheet_content_margin"
2017-09-13 15:41:31 +02:00
tools:src="@drawable/ic_action_flag_dark"/>
2017-08-28 17:39:00 +02:00
2017-09-13 15:41:31 +02:00
<LinearLayout
android:layout_width="0dp"
2017-09-13 17:16:24 +02:00
android:layout_height="match_parent"
2017-09-13 15:41:31 +02:00
android:layout_weight="1"
android:orientation="vertical">
2017-08-28 17:39:00 +02:00
2017-09-13 17:16:24 +02:00
<LinearLayout
2017-09-13 15:41:31 +02:00
android:layout_width="match_parent"
2017-10-19 10:41:55 +02:00
android:layout_height="@dimen/map_marker_title_height">
2017-09-13 17:16:24 +02:00
<android.support.v7.widget.AppCompatTextView
android:id="@+id/map_marker_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-09-26 12:08:15 +02:00
android:layout_gravity="bottom"
2017-09-13 17:16:24 +02:00
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="Van Gogh Museum"/>
</LinearLayout>
2017-08-28 17:39:00 +02:00
2017-09-13 15:41:31 +02:00
<LinearLayout
android:layout_width="match_parent"
2017-09-22 13:51:50 +02:00
android:layout_height="wrap_content"
android:gravity="center_vertical">
2017-09-13 15:41:31 +02:00
2017-09-26 12:55:14 +02:00
<android.support.v7.widget.AppCompatTextView
android:id="@+id/map_marker_first_descr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
android:visibility="gone"
tools:text="Start • "
tools:visibility="visible"/>
2017-09-13 15:41:31 +02:00
<ImageView
android:id="@+id/map_marker_direction_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-10-19 10:41:55 +02:00
android:layout_marginEnd="@dimen/text_margin_small"
android:layout_marginRight="@dimen/text_margin_small"
2017-09-13 15:41:31 +02:00
tools:src="@drawable/ic_direction_arrow"/>
<android.support.v7.widget.AppCompatTextView
android:id="@+id/map_marker_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:textSize="@dimen/default_desc_text_size"
tools:text="213 m"/>
2017-09-14 13:05:34 +02:00
<View
android:id="@+id/map_marker_left_point_space"
2017-10-19 10:41:55 +02:00
android:layout_width="@dimen/text_margin_small"
2017-09-22 13:51:50 +02:00
android:layout_height="match_parent"/>
2017-09-14 13:05:34 +02:00
2017-09-13 15:41:31 +02:00
<android.support.v7.widget.AppCompatTextView
android:id="@+id/map_marker_point_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="•"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
android:visibility="gone"
tools:visibility="visible"/>
2017-09-14 13:05:34 +02:00
<View
android:id="@+id/map_marker_right_point_space"
2017-10-19 10:41:55 +02:00
android:layout_width="@dimen/text_margin_small"
2017-09-22 13:51:50 +02:00
android:layout_height="match_parent"/>
2017-09-14 13:05:34 +02:00
2017-09-13 15:41:31 +02:00
<android.support.v7.widget.AppCompatTextView
android:id="@+id/map_marker_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
tools:text="Amsterdam Weekend"/>
</LinearLayout>
2017-08-28 17:39:00 +02:00
</LinearLayout>
2017-09-13 15:41:31 +02:00
<ImageButton
android:id="@+id/map_marker_options_button"
2017-10-19 10:41:55 +02:00
android:layout_width="@dimen/map_button_shadow_width"
android:layout_height="@dimen/map_button_shadow_width"
2017-09-13 15:41:31 +02:00
android:focusableInTouchMode="true"
2017-09-26 12:08:15 +02:00
tools:background="@drawable/marker_circle_background_dark_with_inset"
2017-09-13 15:41:31 +02:00
tools:src="@drawable/ic_action_marker_passed"/>
<FrameLayout
android:id="@+id/check_box_container"
2017-09-26 12:55:14 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<CheckBox
android:id="@+id/map_marker_check_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-10-19 10:41:55 +02:00
android:layout_marginBottom="@dimen/bottom_sheet_content_margin"
android:layout_marginLeft="@dimen/bottom_sheet_content_margin"
android:layout_marginRight="@dimen/bottom_sheet_content_margin"
android:layout_marginTop="@dimen/bottom_sheet_content_margin"
android:visibility="gone"
tools:visibility="visible"/>
</FrameLayout>
2017-08-28 17:39:00 +02:00
</LinearLayout>
2017-09-13 15:41:31 +02:00
<View
android:id="@+id/divider"
android:layout_width="wrap_content"
android:layout_height="1dp"
2017-10-19 10:41:55 +02:00
android:layout_marginLeft="@dimen/map_button_shadow_width"
android:layout_marginStart="@dimen/map_button_shadow_width"
2019-07-27 08:57:31 +02:00
tools:background="?attr/divider_color"/>
</LinearLayout>
2017-09-26 12:08:15 +02:00
<include
android:id="@+id/bottom_shadow"
layout="@layout/card_bottom_divider"
android:visibility="gone"
tools:visibility="visible"/>
2017-08-28 17:39:00 +02:00
2017-09-06 11:33:52 +02:00
</LinearLayout>