2018-05-02 16:02:37 +02:00
|
|
|
<?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:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/bottom_sheet_selected_item_title_height"
|
|
|
|
android:paddingLeft="@dimen/content_padding"
|
|
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
|
|
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
|
|
|
tools:src="@drawable/ic_map"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?attr/wikivoyage_primary_text_color"
|
|
|
|
android:textSize="@dimen/default_list_text_size"
|
|
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
|
|
tools:text="Ukraine"/>
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@color/wikivoyage_secondary_text"
|
|
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
|
|
tools:text="255 Mb • Standard map"/>
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progress_bar"
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:minHeight="0dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon_action"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
|
|
tools:src="@drawable/ic_action_import"/>
|
|
|
|
|
2018-05-08 12:10:07 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/button_action"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="33dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
|
|
android:background="@drawable/buy_btn_background_light"
|
|
|
|
android:minWidth="40dp"
|
|
|
|
android:paddingLeft="18dp"
|
|
|
|
android:paddingRight="18dp"
|
|
|
|
android:text="@string/get_plugin"
|
|
|
|
android:textColor="@color/buy_button_color"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
2018-05-02 16:02:37 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
2018-05-03 18:50:32 +02:00
|
|
|
android:id="@+id/divider"
|
2018-05-02 16:02:37 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
|
|
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
|
|
|
android:background="?attr/wikivoyage_card_divider_color"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|