OsmAnd/OsmAnd/res/layout/dash_favorites_item.xml

57 lines
2.3 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"
android:layout_height="50dp">
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"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_width="28dp"
android:layout_height="28dp"/>
<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"
android:textSize="16sp"
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"
android:layout_width="10dp"
android:layout_height="10dp"/>
<TextView android:id="@+id/distance"
android:textSize="12sp"
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"
android:src="@drawable/ic_action_gdirections_light"
android:background="@drawable/dashboard_button"
android:layout_marginLeft="12dp"
android:layout_width="50dp"
android:layout_height="50dp"/>
2014-11-13 17:57:59 +01:00
</LinearLayout>
</LinearLayout>