OsmAnd/OsmAnd/res/layout/route_option_btn.xml
2018-11-22 16:43:18 +02:00

61 lines
No EOL
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/route_option_button"
android:layout_width="100dp"
android:layout_height="32dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/route_option_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="start"
android:visibility="visible"
tools:background="@drawable/btn_border_trans_dark">
<ImageView
android:id="@+id/route_option_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/route_info_icon_vertical_padding"
android:paddingLeft="@dimen/route_info_icon_vertical_padding"
android:paddingRight="@dimen/route_info_icon_vertical_padding"
android:paddingTop="@dimen/route_info_icon_vertical_padding"
android:src="@drawable/ic_action_edit_dark"
tools:visibility="visible" />
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/route_option_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:ellipsize="end"
android:gravity="center"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1"
android:paddingBottom="3dp"
android:paddingEnd="4dp"
android:paddingLeft="3dp"
android:paddingRight="4dp"
android:paddingStart="3dp"
android:paddingTop="3dp"
android:text="@string/routing_attr_avoid_motorway_name"
android:textSize="@dimen/default_sub_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:ignore="UnusedAttribute"
tools:textColor="?attr/wikivoyage_active_color" />
</LinearLayout>
<LinearLayout
android:id="@+id/avoid_route_options_container"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal"
android:visibility="visible"
tools:background="@drawable/btn_border_trans_dark" />
</LinearLayout>