OsmAnd/OsmAnd/res/layout/gpx_track_item.xml

231 lines
10 KiB
XML
Raw Normal View History

2017-03-10 21:20:54 +01:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2017-03-10 21:20:54 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"
android:visibility="gone"/>
<LinearLayout
2019-02-20 19:34:04 +01:00
android:id="@+id/container"
2017-03-10 21:20:54 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:minHeight="@dimen/list_item_height"
android:paddingLeft="@dimen/dialog_content_margin"
android:paddingStart="@dimen/dialog_content_margin"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:gravity="center_vertical">
2017-03-10 21:20:54 +01:00
<androidx.appcompat.widget.AppCompatCheckBox
2018-03-06 17:27:43 +01:00
android:id="@+id/check_local_index"
2018-03-06 16:42:34 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-03-06 17:27:43 +01:00
android:focusable="false"
android:visibility="gone"
2018-03-06 16:42:34 +01:00
android:paddingTop="4dp"
android:paddingBottom="4dp"
2020-08-20 16:12:12 +02:00
android:layout_marginRight="@dimen/dialog_content_margin"
android:layout_marginEnd="@dimen/dialog_content_margin"
2018-03-06 16:42:34 +01:00
android:clickable="false"
android:focusableInTouchMode="false" />
2017-03-10 21:20:54 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2017-03-10 21:20:54 +01:00
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
osmand:srcCompat="@drawable/ic_action_polygom_dark"
2017-03-10 21:20:54 +01:00
android:layout_marginRight="@dimen/list_content_padding"
2020-02-24 15:17:23 +01:00
android:visibility="visible"
android:layout_marginEnd="@dimen/list_content_padding" />
2017-03-10 21:20:54 +01:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingTop="@dimen/gpx_text_top_margin"
android:paddingBottom="@dimen/gpx_text_top_margin"
android:layout_marginRight="@dimen/showAllButtonMarginRight"
android:layout_marginEnd="@dimen/showAllButtonMarginRight"
2017-03-10 21:20:54 +01:00
android:layout_weight="1"
android:orientation="vertical">
2017-03-10 21:20:54 +01:00
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start"
2017-03-10 21:20:54 +01:00
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
tools:text="@string/current_track"/>
<LinearLayout
android:id="@+id/read_section"
android:layout_width="wrap_content"
2017-03-10 21:20:54 +01:00
android:layout_height="wrap_content"
android:layout_gravity="start"
2017-03-10 21:20:54 +01:00
android:orientation="horizontal"
android:visibility="visible"
android:gravity="center_vertical">
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2017-03-10 21:20:54 +01:00
android:id="@+id/distance_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_icon_margin"
android:layout_marginEnd="@dimen/gpx_small_icon_margin"
osmand:srcCompat="@drawable/ic_action_distance_16" />
2017-03-10 21:20:54 +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:maxLines="1"
2017-03-10 21:20:54 +01:00
android:includeFontPadding="false"
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-03-10 21:20:54 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2017-03-10 21:20:54 +01:00
android:id="@+id/points_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_icon_margin"
android:layout_marginEnd="@dimen/gpx_small_icon_margin"
osmand:srcCompat="@drawable/ic_action_waypoint_16" />
2017-03-10 21:20:54 +01:00
<TextView
android:id="@+id/points_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
android:includeFontPadding="false"
android:maxLines="1"
2017-03-10 21:20:54 +01:00
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-03-10 21:20:54 +01:00
2020-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2017-03-10 21:20:54 +01:00
android:id="@+id/time_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_icon_margin"
android:layout_marginEnd="@dimen/gpx_small_icon_margin"
osmand:srcCompat="@drawable/ic_action_time_16" />
2017-03-10 21:20:54 +01:00
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
android:maxLines="1"
2017-03-10 21:20:54 +01:00
android:textColor="?android:textColorSecondary"
android:includeFontPadding="false"
2020-02-24 15:17:23 +01:00
android:textSize="@dimen/default_sub_text_size"
android:layout_marginEnd="@dimen/gpx_small_text_margin" />
2017-03-10 21:20:54 +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">
<TextView
android:id="@+id/date_and_size_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorSecondary"
android:maxLines="1"
2020-05-13 11:47:29 +02:00
android:textSize="@dimen/default_sub_text_size" />
2017-03-10 21:20:54 +01:00
</LinearLayout>
<TextView
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_sub_text_size"
android:visibility="gone"/>
</LinearLayout>
2020-08-07 13:01:44 +02:00
<androidx.appcompat.widget.AppCompatImageButton
2017-03-10 21:20:54 +01:00
android:id="@+id/show_on_map"
2020-08-07 13:01:44 +02:00
style="@style/Widget.AppCompat.ActionButton"
2017-03-10 21:20:54 +01:00
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:layout_marginStart="@dimen/favorites_icon_right_margin"
2020-08-07 13:01:44 +02:00
android:layout_marginLeft="@dimen/favorites_icon_right_margin"
android:visibility="gone"
osmand:srcCompat="@drawable/ic_action_gsave_dark" />
2017-03-10 21:20:54 +01:00
2020-08-07 13:01:44 +02:00
<androidx.appcompat.widget.AppCompatImageButton
2017-03-10 21:20:54 +01:00
android:id="@+id/stop"
2020-08-07 13:01:44 +02:00
style="@style/Widget.AppCompat.ActionButton"
2017-03-10 21:20:54 +01:00
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2020-08-07 13:01:44 +02:00
android:visibility="gone"
osmand:srcCompat="@drawable/ic_action_rec_stop" />
2017-03-10 21:20:54 +01:00
2020-08-07 13:01:44 +02:00
<androidx.appcompat.widget.AppCompatImageButton
2017-03-10 21:20:54 +01:00
android:id="@+id/options"
2020-08-07 13:01:44 +02:00
style="@style/Widget.AppCompat.ActionButton"
2017-03-10 21:20:54 +01:00
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2020-08-07 13:01:44 +02:00
android:contentDescription="@string/shared_string_more_actions"
2017-03-10 21:20:54 +01:00
android:focusable="false"
2020-08-07 13:01:44 +02:00
android:visibility="gone"
osmand:srcCompat="@drawable/ic_overflow_menu_white" />
2017-03-10 21:20:54 +01:00
<LinearLayout
android:id="@+id/check_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:visibility="gone">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.SwitchCompat
2017-03-10 21:20:54 +01:00
android:id="@+id/toggle_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginEnd="@dimen/list_content_padding"
android:gravity="center_vertical" />
2017-03-10 21:20:54 +01:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatCheckBox
2018-03-06 17:27:43 +01:00
android:id="@+id/toggle_checkbox_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:layout_marginRight="@dimen/dialog_content_margin"
android:layout_marginEnd="@dimen/dialog_content_margin"
2018-03-06 17:27:43 +01:00
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:visibility="gone" />
2018-03-06 17:27:43 +01:00
2017-03-10 21:20:54 +01:00
</LinearLayout>
</LinearLayout>
</LinearLayout>