OsmAnd/OsmAnd/res/layout/favorites_list_item.xml

93 lines
3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2015-02-04 14:43:09 +01:00
xmlns:tools="http://schemas.android.com/tools"
2015-02-06 13:18:18 +01:00
android:layout_width="fill_parent"
2015-02-09 13:43:37 +01:00
android:layout_height="wrap_content"
2015-02-10 18:18:44 +01:00
android:background="?attr/expandable_list_item_background"
2015-02-09 13:43:37 +01:00
android:minHeight="@dimen/list_item_height"
2015-02-06 13:18:18 +01:00
android:orientation="horizontal"
android:paddingLeft="@dimen/list_content_padding"
2015-02-11 12:29:25 +01:00
android:paddingRight="@dimen/list_content_padding">
2015-02-06 13:18:18 +01:00
<CheckBox
android:id="@+id/check_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-02-11 12:29:25 +01:00
android:layout_marginTop="@dimen/favorites_icon_top_margin"
android:layout_marginRight="@dimen/favorites_icon_right_margin"
2015-02-06 13:18:18 +01:00
android:focusable="false"
2015-02-11 12:29:25 +01:00
android:visibility="gone"
tools:visibility="visible"/>
2015-02-16 17:04:47 +01:00
<ImageView
android:id="@+id/favourite_icon"
android:layout_width="@dimen/favorite_icon_size"
android:layout_height="@dimen/favorite_icon_size"
2015-02-16 17:04:47 +01:00
android:layout_gravity="center_vertical"
android:layout_marginRight="@dimen/favorites_icon_right_margin"/>
2015-02-10 18:18:44 +01:00
<LinearLayout
android:layout_width="match_parent"
2015-02-16 11:32:15 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2015-02-10 18:18:44 +01:00
android:orientation="horizontal">
2015-02-10 18:18:44 +01:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/favourite_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/dashFavNameTextSize"
tools:text="@string/lorem_ipsum"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/direction"
android:layout_width="@dimen/dashFavDirectionSize"
android:layout_height="@dimen/dashFavDirectionSize"
android:layout_gravity="center_vertical"
android:visibility="gone"/>
<TextView
android:id="@+id/distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/showAllButtonTextSize"
tools:text="100500 km"/>
<ImageView
android:id="@+id/group_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="4dp"
android:src="@drawable/ic_small_group"/>
<TextView
android:id="@+id/group_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="4dp"
android:textColor="@color/icon_color_light"
2015-02-10 18:18:44 +01:00
android:textSize="@dimen/showAllButtonTextSize"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>