153 lines
5.6 KiB
XML
153 lines
5.6 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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:focusableInTouchMode="true"
|
|
android:orientation="vertical">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="5"
|
|
android:minHeight="@dimen/bottom_sheet_title_height"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:textAppearance="@style/TextAppearance.ListItemCategoryTitle"
|
|
tools:text="Some Title"
|
|
android:paddingStart="@dimen/content_padding"
|
|
android:paddingEnd="@dimen/content_padding" />
|
|
|
|
<ImageView
|
|
android:id="@+id/image_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="@dimen/content_padding_half"
|
|
android:contentDescription="@string/shared_string_icon" />
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingTop="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding"
|
|
android:paddingBottom="@dimen/content_padding"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
android:lineSpacingMultiplier="@dimen/bottom_sheet_text_spacing_multiplier"
|
|
osmand:typeface="@string/font_roboto_regular"
|
|
tools:text="@string/weight_limit_description"
|
|
android:paddingEnd="@dimen/content_padding"
|
|
android:paddingStart="@dimen/content_padding" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/content_padding_half"
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
android:layout_marginRight="@dimen/content_padding">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
|
|
android:id="@+id/text_caption"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
osmand:hintEnabled="false"
|
|
android:layout_weight="1"
|
|
osmand:boxBackgroundColor="@color/material_text_input_layout_bg">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/text_edit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/favorites_list_item_height"
|
|
android:gravity="end|center_vertical"
|
|
android:inputType="numberDecimal"
|
|
android:maxLines="1"
|
|
android:maxLength="5"
|
|
android:paddingTop="0dp"
|
|
android:paddingBottom="0dp"
|
|
android:paddingStart="@dimen/content_padding_small"
|
|
android:paddingLeft="@dimen/content_padding_small"
|
|
android:paddingRight="@dimen/content_padding_small"
|
|
android:paddingEnd="@dimen/content_padding_small"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
tools:text="@string/lorem_ipsum" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/metric"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingStart="@dimen/content_padding_small"
|
|
android:paddingRight="@dimen/content_padding_small"
|
|
android:paddingEnd="@dimen/content_padding_small"
|
|
android:paddingLeft="@dimen/content_padding_small"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:text="@string/shared_string_meters" />
|
|
</FrameLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/content_padding_small"
|
|
android:paddingBottom="@dimen/content_padding_small"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding"
|
|
android:paddingStart="@dimen/content_padding"
|
|
android:paddingEnd="@dimen/content_padding"
|
|
android:clipToPadding="false"
|
|
android:orientation="horizontal"
|
|
osmand:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
tools:itemCount="3"
|
|
tools:listitem="@layout/point_editor_icon_category_item" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons_container_scroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dialog_button_ex_height"
|
|
android:gravity="center"
|
|
android:layout_gravity="bottom"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding"
|
|
android:paddingEnd="@dimen/content_padding"
|
|
android:paddingStart="@dimen/content_padding">
|
|
|
|
<include
|
|
android:id="@+id/dismiss_button"
|
|
layout="@layout/bottom_sheet_dialog_button" />
|
|
|
|
<View
|
|
android:id="@+id/buttons_divider"
|
|
android:layout_width="@dimen/content_padding"
|
|
android:layout_height="match_parent"
|
|
tools:visibility="visible" />
|
|
|
|
<include
|
|
android:id="@+id/right_bottom_button"
|
|
layout="@layout/bottom_sheet_dialog_button"
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|