OsmAnd/OsmAnd/res/layout/dash_plugin_item.xml

101 lines
3.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2015-01-30 17:25:42 +01:00
<LinearLayout
2015-02-06 12:01:54 +01:00
android:id="@+id/dash_plugin_item"
2015-01-30 17:25:42 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2015-02-02 11:45:31 +01:00
xmlns:tools="http://schemas.android.com/tools"
2015-01-30 17:25:42 +01:00
android:layout_width="match_parent"
2015-03-06 19:37:54 +01:00
android:background="?attr/expandable_list_item_background"
2015-01-30 17:25:42 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2015-02-02 11:45:31 +01:00
2015-01-30 17:25:42 +01:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
2015-02-02 11:45:31 +01:00
android:background="?attr/dashboard_divider"/>
2014-12-09 01:13:58 +01:00
2015-01-30 17:25:42 +01:00
<LinearLayout
android:layout_width="match_parent"
2015-02-19 17:23:49 +01:00
android:layout_height="wrap_content"
2015-01-30 17:25:42 +01:00
android:orientation="horizontal">
2015-02-02 11:45:31 +01:00
2015-02-05 17:26:42 +01:00
<ImageButton
2015-01-30 17:25:42 +01:00
android:id="@+id/plugin_logo"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_margin="11dp"
2015-02-19 17:23:49 +01:00
android:layout_gravity="center_vertical"
2015-02-05 13:56:46 +01:00
android:background="@drawable/bg_plugin_logo_enabled"
2015-01-30 17:25:42 +01:00
android:scaleType="center"
tools:src="@drawable/ic_extension_dark"/>
2014-12-09 01:13:58 +01:00
2015-01-30 17:25:42 +01:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/plugin_name"
android:layout_width="0dp"
2015-02-19 17:23:49 +01:00
android:layout_height="wrap_content"
2015-01-30 17:25:42 +01:00
android:layout_marginBottom="4dp"
2015-02-02 11:45:31 +01:00
android:layout_marginTop="4dp"
android:layout_weight="1"
2015-02-19 17:23:49 +01:00
android:layout_gravity="center_vertical"
2015-01-30 17:25:42 +01:00
android:ellipsize="end"
2015-02-02 11:45:31 +01:00
android:gravity="center_vertical"
2015-01-30 17:25:42 +01:00
android:maxLines="2"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"
osmand:typeface="@string/font_roboto_regular"
2015-02-02 11:45:31 +01:00
tools:text="@string/lorem_ipsum"/>
2014-12-09 01:13:58 +01:00
2015-02-06 12:01:54 +01:00
<FrameLayout
2015-02-05 17:26:42 +01:00
android:layout_width="90dp"
2015-02-02 11:45:31 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginBottom="6dp"
2015-02-06 12:01:54 +01:00
android:layout_marginEnd="16dp"
2015-02-02 11:45:31 +01:00
android:layout_marginLeft="6dp"
android:layout_marginRight="16dp"
2015-02-06 12:01:54 +01:00
android:layout_marginStart="6dp"
android:layout_marginTop="6dp">
<net.osmand.plus.widgets.SwitchEx
android:id="@+id/plugin_enable_disable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/switch_ex_background"
android:minHeight="0dp"
android:paddingBottom="8dp"
android:paddingLeft="9.5dp"
android:paddingRight="9.5dp"
android:paddingTop="8dp"
android:textColor="?attr/switch_ex_text_color"
2015-03-08 09:56:38 +01:00
android:textOff="@string/shared_string_disabled"
2015-03-08 10:09:22 +01:00
android:textOn="@string/shared_string_enabled"
2015-02-06 12:01:54 +01:00
android:textSize="12sp"
android:lines="1"
android:maxLines="1"
android:ellipsize="end"
osmand:textAllCapsCompat="true"
osmand:typeface="@string/font_roboto_medium"/>
<net.osmand.plus.widgets.ButtonEx
android:id="@+id/get_plugin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/get_button_background"
android:minHeight="0dp"
android:paddingBottom="8dp"
android:paddingLeft="9.5dp"
android:paddingRight="9.5dp"
android:paddingTop="8dp"
android:textColor="@color/get_button_text"
android:text="@string/get_plugin"
android:textSize="12sp"
android:lines="1"
android:maxLines="1"
android:ellipsize="end"
osmand:textAllCapsCompat="true"
osmand:typeface="@string/font_roboto_medium"/>
</FrameLayout>
2015-01-30 17:25:42 +01:00
</LinearLayout>
</LinearLayout>