OsmAnd/OsmAnd/res/layout/plugin.xml

153 lines
5.1 KiB
XML
Raw Normal View History

2015-02-03 15:03:29 +01:00
<?xml version="1.0" encoding="utf-8"?>
2015-02-03 16:31:40 +01:00
<ScrollView
2015-02-03 15:03:29 +01:00
xmlns:android="http://schemas.android.com/apk/res/android"
2015-02-03 16:31:40 +01:00
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2015-02-03 15:03:29 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2015-02-05 13:56:46 +01:00
android:layout_height="match_parent">
2015-02-03 15:03:29 +01:00
2015-02-03 16:31:40 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:context=".activities.PluginActivity">
<ImageView
2015-02-06 12:01:54 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxHeight="144dp"
android:maxWidth="360dp"
android:scaleType="centerInside"
android:layout_gravity="center_horizontal"
android:src="@drawable/extension_stub"/>
2015-02-03 16:31:40 +01:00
<FrameLayout
2015-02-05 17:58:41 +01:00
android:id="@+id/plugin_header"
2015-02-03 16:31:40 +01:00
android:layout_width="match_parent"
android:layout_height="66dp"
2015-02-06 12:01:54 +01:00
android:background="?attr/plugin_details_header_bg"
2015-02-05 17:58:41 +01:00
android:paddingLeft="16dp"
2015-02-06 12:01:54 +01:00
android:paddingRight="16dp">
2015-02-03 16:31:40 +01:00
<net.osmand.plus.widgets.ButtonEx
android:id="@+id/plugin_settings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-02-06 12:01:54 +01:00
android:layout_gravity="center_vertical|start"
2015-02-03 16:31:40 +01:00
android:layout_marginBottom="9dp"
android:layout_marginTop="9dp"
android:background="@null"
android:drawableLeft="?attr/ic_action_settings"
android:drawablePadding="10dp"
2015-02-06 12:01:54 +01:00
android:drawableStart="?attr/ic_action_settings"
2015-02-03 16:31:40 +01:00
android:paddingLeft="0dp"
android:paddingRight="16dp"
android:text="@string/plugin_settings_button_caption"
2015-02-06 12:01:54 +01:00
android:textColor="?android:textColorPrimary"
android:textSize="12sp"
android:lines="1"
android:maxLines="1"
android:ellipsize="end"
osmand:textAllCapsCompat="true"
2015-02-03 16:31:40 +01:00
osmand:typeface="@string/font_roboto_medium"/>
2015-02-06 12:01:54 +01:00
<FrameLayout
2015-02-05 13:56:46 +01:00
android:layout_width="139dp"
2015-02-03 16:31:40 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_marginBottom="16dp"
2015-02-06 12:01:54 +01:00
android:layout_marginTop="16dp">
<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:paddingBottom="8dp"
android:paddingLeft="9.5dp"
android:paddingRight="9.5dp"
android:paddingTop="8dp"
android:textColor="?attr/switch_ex_text_color"
android:textOff="@string/enable_plugin"
android:textOn="@string/disable_plugin"
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/plugin_get"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/get_button_background"
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:visibility="gone"
android:lines="1"
android:maxLines="1"
android:ellipsize="end"
osmand:textAllCapsCompat="true"
osmand:typeface="@string/font_roboto_medium"/>
</FrameLayout>
2015-02-03 16:31:40 +01:00
</FrameLayout>
2015-02-05 17:58:41 +01:00
<LinearLayout
2015-02-06 12:01:54 +01:00
android:id="@+id/plugin_install_header"
2015-02-05 17:58:41 +01:00
android:layout_width="match_parent"
android:layout_height="66dp"
2015-02-06 12:01:54 +01:00
android:background="?attr/plugin_details_install_header_bg"
2015-02-05 17:58:41 +01:00
android:gravity="center_vertical"
2015-02-06 12:01:54 +01:00
android:orientation="horizontal"
2015-02-05 17:58:41 +01:00
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:visibility="gone"
tools:visibility="visible">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="?attr/ic_world_globe"/>
<net.osmand.plus.widgets.TextViewEx
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
2015-02-06 12:01:54 +01:00
android:textColor="?attr/plugin_description_header_text_color"
2015-02-05 17:58:41 +01:00
android:text="@string/plugin_install_needs_network"
osmand:typeface="@string/font_roboto_regular"/>
</LinearLayout>
2015-02-03 16:31:40 +01:00
<net.osmand.plus.widgets.TextViewEx
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="16dp"
android:text="@string/plugin_description_title"
2015-02-06 12:01:54 +01:00
android:textSize="14sp"
android:textColor="?attr/plugin_description_header_text_color"
2015-02-04 09:50:27 +01:00
osmand:textAllCapsCompat="true"
2015-02-03 16:31:40 +01:00
osmand:typeface="@string/font_roboto_medium"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/plugin_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="14dp"
2015-02-06 12:01:54 +01:00
android:textSize="16sp"
android:textColor="?android:textColorPrimary"
2015-02-03 16:31:40 +01:00
osmand:typeface="@string/font_roboto_regular"
tools:text="@string/lorem_ipsum"/>
</LinearLayout>
</ScrollView>