OsmAnd/OsmAnd/res/layout/search_list_item.xml

160 lines
6.3 KiB
XML
Raw Normal View History

2016-07-13 16:11:35 +02: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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-07-19 21:58:03 +02:00
android:orientation="vertical">
2016-07-13 16:11:35 +02:00
<LinearLayout
android:id="@+id/searchListItemLayout"
2016-07-13 16:11:35 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-07-19 21:58:03 +02:00
android:minHeight="60dp"
2016-08-02 14:15:06 +02:00
android:orientation="horizontal"
2016-07-19 21:58:03 +02:00
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"/>
2016-07-19 21:58:03 +02:00
<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"/>
2016-07-13 16:11:35 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-07-19 21:58:03 +02:00
android:layout_gravity="center_vertical"
android:layout_marginLeft="8dp"
android:orientation="vertical">
2016-07-13 16:11:35 +02:00
2016-07-19 21:58:03 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-07-13 16:11:35 +02:00
android:layout_height="wrap_content"
2016-07-19 21:58:03 +02:00
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"
2016-08-03 11:10:29 +02:00
android:layout_width="@dimen/directionIconSize"
android:layout_height="@dimen/directionIconSize"
android:layout_marginTop="1sp"
2016-07-19 21:58:03 +02:00
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>
2016-07-13 16:11:35 +02:00
2016-07-16 16:06:05 +02:00
<LinearLayout
2016-07-19 21:58:03 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-08-02 14:15:06 +02:00
android:gravity="right"
2016-07-16 16:06:05 +02:00
android:orientation="horizontal">
2017-07-10 16:28:45 +02:00
<LinearLayout
2016-07-19 21:58:03 +02:00
android:layout_width="0dp"
2017-07-10 16:28:45 +02:00
android:layout_height="match_parent"
2016-07-19 21:58:03 +02:00
android:layout_weight="1"
2017-07-10 16:28:45 +02:00
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>
2016-07-19 21:58:03 +02:00
2016-08-02 14:15:06 +02:00
<LinearLayout
2017-09-21 10:58:41 +02:00
android:id="@+id/time_layout"
2017-07-10 16:28:45 +02:00
android:layout_width="0dp"
android:layout_weight="1"
2016-08-02 14:15:06 +02:00
android:layout_height="match_parent"
2017-07-10 16:28:45 +02:00
android:gravity="end"
2016-08-02 14:15:06 +02:00
android:orientation="horizontal">
2016-07-16 16:06:05 +02:00
2016-08-02 14:15:06 +02:00
<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"/>
2016-07-19 21:58:03 +02:00
2016-08-02 14:15:06 +02:00
<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>
2016-07-16 16:06:05 +02:00
</LinearLayout>
2016-07-13 16:11:35 +02:00
</LinearLayout>
</LinearLayout>
2016-07-19 21:58:03 +02:00
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"/>
2016-07-13 16:11:35 +02:00
</LinearLayout>