126 lines
No EOL
5.6 KiB
XML
126 lines
No EOL
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:descendantFocusability="blocksDescendants">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/selectableItemBackground">
|
|
|
|
<android.support.v7.widget.AppCompatImageView
|
|
android:id="@+id/measure_point_reorder_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:paddingBottom="12dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="12dp"
|
|
android:tint="?attr/secondary_icon_color"
|
|
tools:src="@drawable/ic_action_reorder"/>
|
|
|
|
<android.support.v7.widget.AppCompatImageView
|
|
android:id="@+id/measure_point_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_toEndOf="@id/measure_point_reorder_icon"
|
|
android:layout_toRightOf="@id/measure_point_reorder_icon"
|
|
tools:src="@drawable/ic_action_measure_point"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/measure_point_remove_image_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:focusableInTouchMode="true"
|
|
android:paddingBottom="12dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="12dp"
|
|
tools:src="@drawable/ic_action_remove_dark"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@+id/measure_point_icon"
|
|
android:layout_toLeftOf="@id/measure_point_remove_image_button"
|
|
android:layout_toRightOf="@+id/measure_point_icon"
|
|
android:layout_toStartOf="@id/measure_point_remove_image_button"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
android:id="@+id/measure_point_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
tools:text="@string/plugin_distance_point"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
android:maxLines="1"
|
|
android:id="@+id/measure_point_descr"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
tools:text="@string/shared_string_control_start"/>
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
android:maxLines="1"
|
|
android:id="@+id/measure_point_ele"
|
|
android:layout_toEndOf="@id/measure_point_descr"
|
|
android:layout_toRightOf="@id/measure_point_descr"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
tools:text="Altitude: 345 m"/>
|
|
|
|
<android.support.v7.widget.AppCompatTextView
|
|
android:maxLines="1"
|
|
android:id="@+id/measure_point_speed"
|
|
android:layout_toEndOf="@id/measure_point_ele"
|
|
android:layout_toRightOf="@id/measure_point_ele"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
tools:text="Speed: 45 km/h"/>
|
|
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/points_divider"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="1dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_toEndOf="@+id/measure_point_reorder_icon"
|
|
android:layout_toRightOf="@+id/measure_point_reorder_icon"
|
|
android:background="?attr/dashboard_divider"/>
|
|
</RelativeLayout>
|
|
|
|
</FrameLayout> |