2020-10-12 23:10:59 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/list_item_parent_layout"
|
|
|
|
android:layout_width="match_parent"
|
2020-10-17 13:37:32 +02:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<!--
|
|
|
|
android:background="?android:attr/activatedBackgroundIndicator"
|
|
|
|
-->
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2020-10-17 13:37:32 +02:00
|
|
|
android:id="@+id/list_item_subparent_layout"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
2020-10-17 13:37:32 +02:00
|
|
|
android:background="@drawable/list_selector"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-10-17 13:37:32 +02:00
|
|
|
android:id="@+id/line_layout_time"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
2020-10-17 13:37:32 +02:00
|
|
|
android:id="@+id/line_layout_time_from"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="14:30" />
|
|
|
|
|
|
|
|
<TextView
|
2020-10-17 13:37:32 +02:00
|
|
|
android:id="@+id/line_layout_time_to"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-10-17 13:37:32 +02:00
|
|
|
android:layout_height="0dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="16:30" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
2020-10-17 13:37:32 +02:00
|
|
|
android:id="@+id/line_layout_activity_icon"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="56dp"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
|
|
|
android:padding="8dp"
|
|
|
|
app:srcCompat="@drawable/ic_activity_running" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2021-08-14 23:14:53 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
2020-10-17 13:37:32 +02:00
|
|
|
android:id="@+id/line_layout_activity_name"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="Running"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2020-10-17 13:37:32 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/line_layout_duration_gps"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-17 13:37:32 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:gravity="start"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/line_layout_duration_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="2dp"
|
|
|
|
android:layout_marginEnd="2dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="25min" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/line_layout_gps_icon"
|
|
|
|
android:layout_width="20dp"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_height="19dp"
|
2020-10-17 13:37:32 +02:00
|
|
|
android:layout_gravity="end"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
|
|
|
app:srcCompat="@android:drawable/ic_menu_mylocation" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:gravity="bottom"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/line_layout_step"
|
|
|
|
android:layout_width="wrap_content"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_gravity="start"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:gravity="bottom|start"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/line_layout_step_icon"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_width="19dp"
|
|
|
|
android:layout_height="19dp"
|
|
|
|
android:layout_gravity="bottom|start"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
2020-11-07 17:31:15 +01:00
|
|
|
app:srcCompat="@drawable/ic_shoe_print" />
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/line_layout_step_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_marginEnd="4dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:text="15000" />
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/line_layout_intensity"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:gravity="start"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/line_layout_intensity_icon"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_width="19dp"
|
|
|
|
android:layout_height="19dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
|
|
|
app:srcCompat="@drawable/ic_intensity" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/line_layout_intensity_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_marginEnd="4dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:text="101" />
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/line_layout_distance"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:gravity="start"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/line_layout_distance_icon"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_width="19dp"
|
|
|
|
android:layout_height="19dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
2020-10-14 22:28:42 +02:00
|
|
|
app:srcCompat="@drawable/ic_distance" />
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/line_layout_distance_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_marginEnd="4dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:text="15.1km" />
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/line_layout_hr"
|
|
|
|
android:layout_width="wrap_content"
|
2020-10-17 13:37:32 +02:00
|
|
|
android:layout_height="match_parent"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:gravity="start"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/line_layout_hr_icon"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:layout_width="19dp"
|
|
|
|
android:layout_height="19dp"
|
2020-10-12 23:10:59 +02:00
|
|
|
android:layout_gravity="start"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
|
|
|
app:srcCompat="@drawable/ic_heartrate" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/line_layout_hr_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_marginEnd="2dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
2020-10-27 09:00:42 +01:00
|
|
|
android:text="122" />
|
2020-10-12 23:10:59 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-10-17 13:37:32 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/line_layout_date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:gravity="start"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<!--
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/line_layout_date_icon"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:contentDescription="@string/candidate_item_device_image"
|
|
|
|
app:srcCompat="@drawable/ic_calendar_today" />
|
|
|
|
-->
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/line_layout_date_label"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:scrollHorizontally="false"
|
|
|
|
android:text="1.1.1973" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
2020-10-12 23:10:59 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|