OsmAnd/OsmAnd/res/layout/dash_osmo_item.xml

88 lines
2.8 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"
2015-03-17 17:44:16 +01:00
xmlns:tools="http://schemas.android.com/tools"
2015-01-21 16:51:12 +01:00
android:layout_width="match_parent"
2015-03-19 13:54:50 +01:00
android:layout_height="wrap_content"
android:background="?attr/expandable_list_item_background"
android:minHeight="@dimen/list_item_height"
2015-03-19 13:54:50 +01:00
android:orientation="vertical">
2015-03-17 17:44:16 +01:00
2015-03-19 13:54:50 +01:00
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"/>
2015-03-17 17:44:16 +01:00
<LinearLayout
2015-03-19 13:54:50 +01:00
android:layout_width="match_parent"
android:minHeight="@dimen/list_item_height"
2015-03-17 17:44:16 +01:00
android:layout_height="wrap_content"
2015-03-19 13:54:50 +01:00
android:orientation="horizontal">
2015-03-17 17:44:16 +01:00
2015-03-19 13:54:50 +01:00
<ImageView
android:id="@+id/icon"
2015-03-17 17:44:16 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-03-19 13:54:50 +01:00
android:layout_marginLeft="@dimen/dashFavIconMargin"
android:layout_marginRight="@dimen/dashFavIconMargin"
android:layout_marginTop="@dimen/favorites_icon_top_margin"
tools:src="@drawable/ic_gpx_track"/>
2015-03-17 17:44:16 +01:00
<LinearLayout
2015-03-19 13:54:50 +01:00
android:layout_width="0dp"
2015-03-17 17:44:16 +01:00
android:layout_height="wrap_content"
2015-03-19 13:54:50 +01:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical">
2015-03-17 17:44:16 +01:00
<TextView
2015-03-19 13:54:50 +01:00
android:id="@+id/name"
2015-03-17 17:44:16 +01:00
android:layout_width="wrap_content"
2015-03-19 13:54:50 +01:00
android:layout_height="wrap_content"
tools:text="@string/app_version"/>
2015-03-17 17:44:16 +01:00
2015-03-19 13:54:50 +01:00
<LinearLayout
2015-03-17 17:44:16 +01:00
android:layout_width="wrap_content"
2015-03-19 13:54:50 +01:00
android:layout_height="wrap_content"
2015-03-20 10:48:55 +01:00
android:orientation="horizontal">
2015-03-17 17:44:16 +01:00
2015-03-19 13:54:50 +01:00
<ImageView
android:id="@+id/people_icon"
2015-03-20 10:48:55 +01:00
android:layout_width="@dimen/dashFavDirectionSize"
android:layout_height="@dimen/dashFavDirectionSize"
tools:src="@drawable/ic_action_start_navigation"/>
2015-03-19 13:54:50 +01:00
<TextView
android:id="@+id/people_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/direction_icon"
2015-03-20 15:27:31 +01:00
android:layout_gravity="center_vertical"
android:layout_width="@dimen/dashFavDirectionSize"
android:layout_height="@dimen/dashFavDirectionSize"
2015-03-20 10:48:55 +01:00
tools:src="@drawable/ic_action_start_navigation"/>
2015-03-19 13:54:50 +01:00
<TextView
android:id="@+id/distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
2015-01-21 16:51:12 +01:00
</LinearLayout>
2015-03-19 13:54:50 +01:00
<ImageButton
android:id="@+id/show_on_map"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2015-03-19 13:54:50 +01:00
android:layout_gravity="center_vertical"
2015-04-24 23:45:03 +02:00
android:background="?attr/dashboard_button"
2015-03-19 13:54:50 +01:00
tools:src="@drawable/ic_action_marker_dark"/>
<include android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
layout="@layout/check_item_rel"/>
2015-01-21 16:51:12 +01:00
</LinearLayout>
2015-03-19 13:54:50 +01:00
2015-01-21 16:51:12 +01:00
</LinearLayout>