OsmAnd/OsmAnd/res/layout/fragment_wikivoyage_article_dialog.xml

169 lines
6.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-04-15 14:24:01 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-04-15 14:24:01 +02:00
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:background="?attr/wikivoyage_bg_color"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:background="?attr/wikivoyage_app_bar_color"
android:gravity="center_vertical"
android:minHeight="@dimen/toolbar_height"
osmand:contentInsetLeft="54dp"
osmand:contentInsetStart="54dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-04-15 17:41:43 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/article_toolbar_text"
android:layout_width="0dp"
2018-04-15 17:41:43 +02:00
android:gravity="center_vertical"
android:textSize="@dimen/dialog_header_text_size"
android:ellipsize="end"
2018-05-03 15:01:31 +02:00
android:maxLines="1"
2018-04-15 17:41:43 +02:00
osmand:typeface="@string/font_roboto_medium"
android:layout_height="match_parent"
android:layout_weight="1"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/select_language_text_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/content_padding_small"
android:layout_marginLeft="@dimen/context_menu_padding_margin_small"
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
android:layout_marginTop="@dimen/content_padding_small"
android:drawablePadding="@dimen/context_menu_padding_margin_small"
android:gravity="center_vertical"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:padding="@dimen/context_menu_padding_margin_tiny"
2018-04-18 17:38:31 +02:00
android:textSize="@dimen/text_button_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:background="@drawable/wikipedia_select_lang_bg_dark_n"
tools:drawableLeft="@drawable/ic_action_map_language"
tools:ignore="UnusedAttribute"
tools:text="En"
tools:textColor="?attr/wikivoyage_active_color"/>
</LinearLayout>
</android.support.v7.widget.Toolbar>
2018-04-15 14:24:01 +02:00
<FrameLayout
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dp">
<WebView
2018-04-15 14:24:01 +02:00
android:id="@+id/content_web_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
2018-04-06 18:06:04 +02:00
2018-04-15 14:24:01 +02:00
<ImageView
android:layout_width="match_parent"
android:layout_gravity="bottom"
android:layout_height="10dp"
android:background="@drawable/bg_contextmenu_shadow_top_light" />
</FrameLayout>
2018-04-06 18:06:04 +02:00
<LinearLayout
android:id="@+id/bottom_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-04-06 18:06:04 +02:00
android:layout_gravity="bottom|center_horizontal"
android:orientation="vertical">
2018-04-15 14:24:01 +02:00
2018-04-12 13:01:06 +02:00
2018-04-06 18:06:04 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_sheet_cancel_button_height"
2018-04-10 16:01:52 +02:00
android:background="?attr/wikivoyage_bottom_bar_bg_color">
2018-04-06 18:06:04 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/contents_button"
android:layout_width="wrap_content"
2018-04-06 18:06:04 +02:00
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
2018-04-15 15:07:08 +02:00
android:layout_weight="0.33"
2018-04-06 18:06:04 +02:00
android:background="?attr/selectableItemBackground"
android:drawablePadding="@dimen/bottom_sheet_content_padding_small"
android:ellipsize="end"
android:gravity="center_vertical"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1"
android:paddingBottom="@dimen/context_menu_padding_margin_tiny"
android:paddingLeft="@dimen/bottom_sheet_content_margin"
2018-04-06 18:06:04 +02:00
android:paddingRight="@dimen/bottom_sheet_content_padding_small"
android:paddingTop="@dimen/context_menu_padding_margin_tiny"
android:text="@string/shared_string_contents"
2018-04-06 18:06:04 +02:00
android:textColor="?attr/wikivoyage_active_color"
2018-04-18 17:38:31 +02:00
android:textSize="@dimen/text_button_text_size"
2018-04-06 18:06:04 +02:00
osmand:typeface="@string/font_roboto_medium"
tools:drawableLeft="@drawable/ic_action_list_header"
tools:drawableTint="?attr/wikivoyage_active_color"
2018-04-12 12:42:08 +02:00
tools:ignore="UnusedAttribute" />
2018-04-15 15:07:08 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/gpx_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_weight="0.33"
android:background="?attr/selectableItemBackground"
android:drawablePadding="@dimen/bottom_sheet_content_padding_small"
android:ellipsize="end"
android:gravity="center_vertical"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1"
android:paddingBottom="@dimen/context_menu_padding_margin_tiny"
android:paddingLeft="@dimen/bottom_sheet_content_margin"
android:paddingRight="@dimen/bottom_sheet_content_padding_small"
android:paddingTop="@dimen/context_menu_padding_margin_tiny"
2018-05-17 13:43:04 +02:00
android:text="@string/shared_string_gpx_points"
2018-04-15 15:07:08 +02:00
android:textColor="?attr/wikivoyage_active_color"
2018-04-18 17:38:31 +02:00
android:textSize="@dimen/text_button_text_size"
2018-04-15 15:07:08 +02:00
osmand:typeface="@string/font_roboto_medium"
2018-05-17 12:04:40 +02:00
tools:drawableLeft="@drawable/ic_action_markers_dark"
2018-04-15 15:07:08 +02:00
tools:drawableTint="?attr/wikivoyage_active_color"
tools:ignore="UnusedAttribute" />
2018-04-06 18:06:04 +02:00
<net.osmand.plus.widgets.TextViewEx
2018-04-06 18:06:04 +02:00
android:id="@+id/save_button"
android:layout_width="wrap_content"
2018-04-06 18:06:04 +02:00
android:layout_height="match_parent"
android:layout_gravity="center_vertical|end"
2018-04-15 15:07:08 +02:00
android:layout_weight="0.34"
android:background="?attr/selectableItemBackground"
android:drawablePadding="@dimen/bottom_sheet_content_padding_small"
android:ellipsize="end"
android:gravity="center_vertical|end"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1"
android:paddingBottom="@dimen/context_menu_padding_margin_tiny"
android:paddingLeft="@dimen/bottom_sheet_content_padding_small"
android:paddingRight="@dimen/bottom_sheet_content_margin"
android:paddingTop="@dimen/context_menu_padding_margin_tiny"
android:textColor="?attr/wikivoyage_active_color"
2018-04-18 17:38:31 +02:00
android:textSize="@dimen/text_button_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:drawableRight="@drawable/ic_action_read_later_fill"
tools:drawableTint="?attr/wikivoyage_active_color"
tools:ignore="UnusedAttribute"
2018-04-12 12:42:08 +02:00
tools:text="Save" />
2018-04-06 18:06:04 +02:00
</LinearLayout>
</LinearLayout>
2018-04-15 14:24:01 +02:00
</LinearLayout>