OsmAnd/OsmAnd/res/layout/gpx_track_item.xml

234 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:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-05-13 11:47:29 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:orientation="vertical">
2017-03-10 21:20:54 +01:00
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"
2020-05-13 11:47:29 +02:00
android:visibility="gone" />
2017-03-10 21:20:54 +01:00
<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
2018-03-06 17:27:43 +01:00
<CheckBox
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"
android:paddingRight="@dimen/dialog_content_margin"
android:paddingEnd="@dimen/dialog_content_margin"
android:paddingLeft="0dp"
android:paddingStart="0dp"
2018-03-06 16:42:34 +01:00
android:clickable="false"
android:focusableInTouchMode="false" />
2017-03-10 21:20:54 +01:00
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app: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"
2020-05-13 11:47:29 +02:00
tools:text="@string/current_track" />
2017-03-10 21:20:54 +01:00
<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">
<ImageView
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"
app: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
<ImageView
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"
app: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
<ImageView
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"
app: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"
2020-05-13 11:47:29 +02:00
android:visibility="gone" />
2017-03-10 21:20:54 +01:00
</LinearLayout>
<ImageButton
android:id="@+id/show_on_map"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:layout_marginLeft="@dimen/favorites_icon_right_margin"
android:layout_marginStart="@dimen/favorites_icon_right_margin"
2017-03-10 21:20:54 +01:00
android:background="?attr/dashboard_button"
app:srcCompat="@drawable/ic_action_gsave_dark"
android:visibility="gone" />
2017-03-10 21:20:54 +01:00
<ImageButton
android:id="@+id/stop"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:background="?attr/dashboard_button"
app:srcCompat="@drawable/ic_action_rec_stop"
2020-05-13 11:47:29 +02:00
android:visibility="gone" />
2017-03-10 21:20:54 +01:00
<ImageButton
android:id="@+id/options"
android:contentDescription="@string/shared_string_more_actions"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:background="?attr/dashboard_button"
android:focusable="false"
app:srcCompat="@drawable/ic_overflow_menu_white"
2020-05-13 11:47:29 +02:00
android:visibility="gone" />
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>