OsmAnd/OsmAnd/res/layout/dash_gpx_track_item.xml

224 lines
7.9 KiB
XML
Raw Normal View History

2015-01-21 16:51:12 +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"
2015-01-21 16:51:12 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2015-02-28 17:03:30 +01:00
android:background="?attr/expandable_list_item_background"
2017-02-19 13:34:42 +01:00
android:orientation="vertical">
2015-01-21 16:51:12 +01:00
<View
2017-02-18 13:59:44 +01:00
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"
2017-02-18 13:59:44 +01:00
android:background="?attr/dashboard_divider"
2020-02-24 15:17:23 +01:00
android:visibility="gone"
android:layout_marginStart="@dimen/route_info_list_text_padding" />
2017-02-18 13:59:44 +01:00
<View
android:id="@+id/divider_dash"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"/>
2015-01-21 16:51:12 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-02-16 13:59:20 +01:00
android:orientation="horizontal"
2017-02-19 13:34:42 +01:00
android:minHeight="@dimen/list_item_height"
2017-02-16 13:59:20 +01:00
android:gravity="center_vertical">
<CheckBox
android:id="@+id/check_local_index"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-02-18 13:59:44 +01:00
android:layout_marginLeft="@dimen/list_content_padding"
android:focusable="false"
2020-02-24 15:17:23 +01:00
android:visibility="gone"
android:layout_marginStart="@dimen/list_content_padding" />
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
2017-02-19 13:34:42 +01:00
android:src="@drawable/ic_action_polygom_dark"
2020-02-24 15:17:23 +01:00
android:visibility="visible"
android:layout_marginStart="@dimen/list_content_padding" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
2017-02-19 13:34:42 +01:00
android:paddingTop="@dimen/gpx_text_top_margin"
android:paddingBottom="@dimen/gpx_text_top_margin"
android:paddingLeft="@dimen/subHeaderMarginLeft"
android:paddingRight="@dimen/showAllButtonMarginRight"
android:layout_weight="1"
2020-02-24 15:17:23 +01:00
android:orientation="vertical"
android:paddingEnd="@dimen/showAllButtonMarginRight"
android:paddingStart="@dimen/subHeaderMarginLeft">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
2017-02-19 13:34:42 +01:00
tools:text="@string/current_track"/>
<LinearLayout
android:id="@+id/read_section"
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">
<ImageView
2017-02-16 13:59:20 +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"
2020-02-24 15:17:23 +01:00
android:src="@drawable/ic_small_distance"
android:layout_marginEnd="@dimen/gpx_small_icon_margin" />
<TextView
2017-02-16 13:59:20 +01:00
android:id="@+id/distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
2017-02-19 13:52:43 +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" />
<ImageView
2017-02-16 13:59:20 +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"
2020-02-24 15:17:23 +01:00
android:src="@drawable/ic_small_point"
android:layout_marginEnd="@dimen/gpx_small_icon_margin" />
<TextView
2017-02-16 13:59:20 +01:00
android:id="@+id/points_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
2017-02-19 13:52:43 +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" />
<ImageView
android:id="@+id/time_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_icon_margin"
2020-02-24 15:17:23 +01:00
android:src="@drawable/ic_small_time"
android:layout_marginEnd="@dimen/gpx_small_icon_margin" />
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/gpx_small_text_margin"
android:textColor="?android:textColorSecondary"
2017-02-19 13:52:43 +01:00
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-02-19 13:34:42 +01:00
2015-01-21 16:51:12 +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:textSize="@dimen/default_sub_text_size"/>
</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"/>
2015-01-21 16:51:12 +01:00
2017-02-19 13:34:42 +01:00
</LinearLayout>
2015-03-07 12:37:31 +01:00
<ImageButton
2015-03-07 12:37:31 +01:00
android:id="@+id/show_on_map"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2015-03-07 12:37:31 +01:00
android:layout_marginLeft="@dimen/favorites_icon_right_margin"
2015-04-24 23:45:03 +02:00
android:background="?attr/dashboard_button"
2015-03-07 12:37:31 +01:00
android:src="@drawable/ic_action_gsave_dark"
2020-02-24 15:17:23 +01:00
android:visibility="gone"
android:layout_marginStart="@dimen/favorites_icon_right_margin" />
2017-02-18 13:59:44 +01:00
<ImageButton
2015-03-07 12:37:31 +01:00
android:id="@+id/stop"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2015-04-24 23:45:03 +02:00
android:background="?attr/dashboard_button"
2015-03-07 12:37:31 +01:00
android:src="@drawable/ic_action_rec_stop"
2017-02-19 13:34:42 +01:00
android:visibility="gone"/>
<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"
2015-04-24 23:45:03 +02:00
android:background="?attr/dashboard_button"
android:focusable="false"
2015-04-24 23:20:54 +02:00
android:src="@drawable/ic_overflow_menu_white"
android:visibility="gone"/>
2017-02-16 13:59:20 +01:00
<LinearLayout
android:id="@+id/check_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
2017-02-19 13:34:42 +01:00
android:layout_marginRight="@dimen/list_content_padding"
2020-02-24 15:17:23 +01:00
android:visibility="gone"
android:layout_marginEnd="@dimen/list_content_padding">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.SwitchCompat
2017-02-23 10:14:33 +01:00
android:id="@+id/toggle_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-02-24 15:17:23 +01:00
android:paddingTop="@dimen/list_item_button_padding"
android:paddingBottom="@dimen/list_item_button_padding"
2017-03-10 21:20:54 +01:00
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
2017-02-23 10:14:33 +01:00
android:gravity="center_vertical"/>
2015-01-21 16:51:12 +01:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatCheckBox
2017-03-09 19:32:55 +01:00
android:id="@+id/toggle_checkbox_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-02-24 15:17:23 +01:00
android:paddingTop="@dimen/list_item_button_padding"
android:paddingBottom="@dimen/list_item_button_padding"
2017-03-10 21:20:54 +01:00
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
2017-03-09 19:32:55 +01:00
android:visibility="gone"/>
2017-02-16 13:59:20 +01:00
</LinearLayout>
</LinearLayout>
2015-01-21 16:51:12 +01:00
</LinearLayout>