OsmAnd/OsmAnd/res/layout/wpt_list_item.xml

151 lines
6.2 KiB
XML
Raw Normal View History

2017-02-28 19:51:42 +01:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
2017-02-28 19:51:42 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
2018-05-12 22:18:55 +02:00
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2017-02-28 19:51:42 +01:00
xmlns:tools="http://schemas.android.com/tools"
2018-05-12 22:18:55 +02:00
android:layout_width="match_parent"
2017-02-28 19:51:42 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/group_divider"
2017-02-28 19:51:42 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
tools:visibility="visible">
2017-02-28 19:51:42 +01:00
<include layout="@layout/list_item_divider"/>
2017-02-28 19:51:42 +01:00
</LinearLayout>
<FrameLayout
android:id="@+id/container"
2017-02-28 19:51:42 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/expandable_list_item_background"
android:minHeight="@dimen/wpt_list_item_height">
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"
android:visibility="gone"/>
2017-02-28 19:51:42 +01:00
<View
android:id="@+id/list_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="64dp"
android:background="?attr/dashboard_divider"
android:visibility="gone"/>
2017-02-28 19:51:42 +01:00
<LinearLayout
android:layout_width="match_parent"
2017-02-28 19:51:42 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:paddingLeft="@dimen/list_content_padding"
android:orientation="horizontal">
2017-02-28 19:51:42 +01:00
<CheckBox
android:id="@+id/toggle_item"
2018-05-12 22:18:55 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/favorites_icon_right_margin"
android:focusable="false"
2018-05-12 22:18:55 +02:00
android:visibility="gone"
tools:visibility="visible"/>
<ImageView
android:id="@+id/icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:layout_marginRight="@dimen/favorites_icon_right_margin"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingRight="@dimen/list_content_padding"
android:paddingTop="8dp">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/bold_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="?attr/wikivoyage_primary_text_color"
android:textSize="@dimen/text_button_text_size"
osmand:typeface="@string/font_roboto_medium"
android:visibility="gone"
tools:visibility="visible"
tools:text="Category name"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/label"
2018-06-11 13:19:23 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/wikivoyage_primary_text_color"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_regular"
tools:text="Point title"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/description"
2018-06-11 13:19:23 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="2"
android:textColor="@color/wikivoyage_secondary_text"
android:textSize="@dimen/default_sub_text_size"
osmand:typeface="@string/font_roboto_regular"
tools:text="Point description"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/color_dialog_buttons"
android:textSize="@dimen/default_sub_text_size"
android:visibility="gone"
osmand:textAllCapsCompat="true"
osmand:typeface="@string/font_roboto_medium"
tools:text="SHOW ALL"
tools:visibility="visible"/>
</LinearLayout>
<LinearLayout
2017-02-28 19:51:42 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/list_item_button_padding"
android:layout_marginRight="@dimen/list_item_button_padding"
android:orientation="horizontal">
2017-02-28 19:51:42 +01:00
<ImageView
android:id="@+id/expand_image"
android:layout_width="@dimen/acceptable_touch_radius"
android:layout_height="@dimen/acceptable_touch_radius"
android:scaleType="center"
android:src="@drawable/ic_action_arrow_up"
android:visibility="gone"
tools:visibility="visible"/>
2017-02-28 19:51:42 +01:00
<ImageButton
android:id="@+id/options"
android:layout_width="@dimen/acceptable_touch_radius"
android:layout_height="@dimen/acceptable_touch_radius"
android:background="?attr/dashboard_button"
android:contentDescription="@string/shared_string_more"
android:src="@drawable/ic_overflow_menu_white"
android:visibility="visible"/>
2017-02-28 19:51:42 +01:00
</LinearLayout>
</LinearLayout>
</FrameLayout>
2017-02-28 19:51:42 +01:00
</LinearLayout>