OsmAnd/OsmAnd/res/layout/current_gpx_item.xml

208 lines
9.4 KiB
XML
Raw Normal View History

2017-02-18 13:59:44 +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"
android:layout_height="wrap_content"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
android:minHeight="@dimen/list_item_height"
android:orientation="vertical">
<LinearLayout
2017-02-18 13:59:44 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2017-02-18 13:59:44 +01:00
android:background="?attr/bg_color">
<LinearLayout
2017-03-14 14:56:17 +01:00
android:id="@+id/current_track_info"
2017-02-18 13:59:44 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-14 14:56:17 +01:00
android:background="?attr/selectableItemBackground"
2020-02-24 15:17:23 +01:00
android:paddingBottom="@dimen/content_padding_half"
android:orientation="horizontal">
2017-02-18 13:59:44 +01:00
<androidx.appcompat.widget.AppCompatCheckBox
android:id="@+id/check_local_index"
android:layout_width="wrap_content"
2017-02-18 13:59:44 +01:00
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
2020-02-24 15:17:23 +01:00
android:layout_marginTop="@dimen/content_padding_small"
android:focusable="false"
2020-02-24 15:17:23 +01:00
android:visibility="gone"
android:layout_marginStart="@dimen/list_content_padding" />
2017-02-18 13:59:44 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
2020-02-24 15:17:23 +01:00
android:layout_marginTop="@dimen/content_padding_small"
osmand:srcCompat="@drawable/monitoring_rec_big"
2020-02-24 15:17:23 +01:00
android:visibility="visible"
android:layout_marginStart="@dimen/list_content_padding" />
2017-02-18 13:59:44 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-02-24 15:17:23 +01:00
android:paddingTop="@dimen/content_padding_small"
android:layout_marginLeft="@dimen/subHeaderMarginLeft"
android:layout_marginRight="@dimen/showAllButtonMarginRight"
android:gravity="center_vertical"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:layout_marginEnd="@dimen/showAllButtonMarginRight"
android:layout_marginStart="@dimen/subHeaderMarginLeft">
2017-02-18 13:59:44 +01:00
<LinearLayout
android:layout_width="match_parent"
2017-02-18 13:59:44 +01:00
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-02-18 13:59:44 +01:00
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_list_text_size"
android:text="@string/current_track"/>
<TextView
android:id="@+id/segment_time_div"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
android:text=" • "/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/segment_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:text="0:05:34"/>
2017-02-18 13:59:44 +01:00
</LinearLayout>
2017-02-18 13:59:44 +01:00
<LinearLayout
android:id="@+id/read_section"
2017-02-18 13:59:44 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
2017-02-19 13:34:42 +01:00
android:visibility="visible"
android:gravity="center_vertical">
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/distance_icon"
android:layout_width="wrap_content"
2017-02-18 13:59:44 +01:00
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_icon_margin"
osmand:srcCompat="@drawable/ic_action_distance_16"
2020-02-24 15:17:23 +01:00
android:layout_marginEnd="@dimen/gpx_small_icon_margin" />
2017-02-18 13:59:44 +01:00
<TextView
android:id="@+id/distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
android:textColor="?android:textColorSecondary"
2020-02-24 15:17:23 +01:00
android:textSize="@dimen/default_sub_text_size"
android:layout_marginEnd="@dimen/gpx_small_text_margin" />
2017-02-18 13:59:44 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/points_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_icon_margin"
osmand:srcCompat="@drawable/ic_action_waypoint_16"
2020-02-24 15:17:23 +01:00
android:layout_marginEnd="@dimen/gpx_small_icon_margin" />
2017-02-18 13:59:44 +01:00
<TextView
android:id="@+id/points_count"
2017-02-18 13:59:44 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
android:textColor="?android:textColorSecondary"
2020-02-24 15:17:23 +01:00
android:textSize="@dimen/default_sub_text_size"
android:layout_marginEnd="@dimen/gpx_small_text_margin" />
2017-02-18 13:59:44 +01:00
</LinearLayout>
<LinearLayout
android:id="@+id/unknown_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone">
2017-02-18 13:59:44 +01:00
<TextView
android:id="@+id/date_and_size_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size"/>
2017-02-18 13:59:44 +01:00
</LinearLayout>
<TextView
android:id="@+id/description"
2017-02-18 13:59:44 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_sub_text_size"
android:visibility="gone"/>
2017-02-18 13:59:44 +01:00
</LinearLayout>
</LinearLayout>
2017-03-14 14:56:17 +01:00
<View
android:id="@+id/divider_list"
android:layout_width="match_parent"
android:layout_height="1dp"
2020-02-24 15:17:23 +01:00
android:layout_marginLeft="@dimen/route_info_list_text_padding"
android:background="?attr/dashboard_divider"
android:layout_marginStart="@dimen/route_info_list_text_padding" />
2017-03-14 14:56:17 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/action_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:textColor="?attr/color_dialog_buttons"
android:background="?attr/selectableItemBackground"
osmand:drawableLeftCompat="@drawable/ic_action_rec_stop"
osmand:drawableStartCompat="@drawable/ic_action_rec_stop"
android:text="@string/shared_string_control_stop"
2020-02-24 15:17:23 +01:00
android:paddingStart="10dp"
android:layout_marginStart="40dp"
android:paddingEnd="10dp" />
<Button
android:id="@+id/save_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:paddingLeft="10dp"
android:paddingRight="10dp"
osmand:drawableLeftCompat="@drawable/ic_action_gsave_dark"
osmand:drawableStartCompat="@drawable/ic_action_gsave_dark"
android:textColor="?attr/color_dialog_buttons"
android:text="@string/shared_string_save"
android:visibility="gone"
2020-02-24 15:17:23 +01:00
tools:visibility="visible"
android:paddingEnd="10dp"
android:paddingStart="10dp" />
</LinearLayout>
</LinearLayout>
2017-02-18 13:59:44 +01:00
</LinearLayout>