OsmAnd/OsmAnd/res/layout/dash_favorites_item.xml

57 lines
2.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2014-11-13 17:57:59 +01:00
android:orientation="vertical"
android:layout_width="match_parent"
android:background="@drawable/dashboard_button"
2014-12-17 16:13:43 +01:00
android:layout_height="@dimen/dashListItemHeight">
2014-11-13 17:57:59 +01:00
<View android:layout_width="match_parent"
android:background="@color/dashboard_divider"
android:layout_height="1dp"/>
<LinearLayout android:orientation="horizontal"
android:layout_width="match_parent"
2014-11-14 14:52:25 +01:00
android:layout_height="match_parent">
2014-11-13 17:57:59 +01:00
<ImageView android:id="@+id/icon"
android:layout_gravity="center_vertical"
2014-12-17 16:13:43 +01:00
android:layout_marginLeft="@dimen/dashFavIconMargin"
android:layout_marginRight="@dimen/dashFavIconMargin"
android:layout_width="wrap_content"
android:layout_height="fill_parent"/>
2014-11-13 17:57:59 +01:00
<LinearLayout android:orientation="vertical"
android:layout_weight="1"
2014-11-13 17:57:59 +01:00
android:layout_gravity="center_vertical"
android:layout_width="0dp"
2014-11-13 17:57:59 +01:00
android:layout_height="wrap_content">
<TextView android:id="@+id/name"
2014-12-17 16:13:43 +01:00
android:textSize="@dimen/dashFavNameTextSize"
2014-11-13 17:57:59 +01:00
android:textColor="@color/dashboard_black"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<LinearLayout android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView android:visibility="gone"
android:id="@+id/direction"
android:layout_gravity="center_vertical"
2014-12-17 16:13:43 +01:00
android:layout_width="@dimen/dashFavDirectionSize"
android:layout_height="@dimen/dashFavDirectionSize"/>
<TextView android:id="@+id/distance"
2014-12-17 16:13:43 +01:00
android:textSize="@dimen/showAllButtonTextSize"
android:textColor="@color/dashboard_blue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
2014-11-13 17:57:59 +01:00
</LinearLayout>
<ImageButton android:id="@+id/navigate_to"
2014-12-17 16:13:43 +01:00
android:layout_gravity="center_vertical"
android:src="@drawable/ic_action_gdirections_light"
android:background="@drawable/dashboard_button"
2014-12-17 16:13:43 +01:00
android:layout_marginLeft="@dimen/dashFavIconMargin"
android:layout_width="@dimen/dashListItemHeight"
android:layout_height="@dimen/dashListItemHeight"/>
2014-11-13 17:57:59 +01:00
</LinearLayout>
</LinearLayout>