160 lines
No EOL
6.3 KiB
XML
160 lines
No EOL
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/searchListItemLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="60dp"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="8dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingTop="8dp">
|
|
|
|
<CheckBox
|
|
android:id="@+id/toggle_item"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginRight="20dp"
|
|
android:focusable="false"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginRight="8dp"
|
|
android:scaleType="centerInside"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingRight="16dp"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
tools:text="Amsterdam"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/compass_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/direction"
|
|
android:layout_width="@dimen/directionIconSize"
|
|
android:layout_height="@dimen/directionIconSize"
|
|
android:layout_marginTop="1sp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<TextView
|
|
android:id="@+id/distance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="2dp"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
tools:text="100500 km"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="right"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/type_name_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="4dp"
|
|
android:layout_marginTop="4.5dp"
|
|
android:src="@drawable/ic_small_group" />
|
|
|
|
<TextView
|
|
android:id="@+id/subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
tools:text="City" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/time_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:gravity="end"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/time_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginRight="@dimen/gpx_small_icon_margin"
|
|
android:src="@drawable/ic_small_time"/>
|
|
|
|
<TextView
|
|
android:id="@+id/time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:maxLines="1"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
tools:text="10-12 am"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
</LinearLayout> |