2018-10-25 11:52:32 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="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:orientation="vertical"
|
|
|
|
tools:layout_gravity="bottom">
|
|
|
|
|
2020-03-04 15:12:06 +01:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2018-10-25 11:52:32 +02:00
|
|
|
android:id="@+id/scroll_view_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2020-03-04 15:12:06 +01:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2018-10-25 11:52:32 +02:00
|
|
|
android:id="@+id/scroll_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:behavior_hideable="true"
|
|
|
|
app:behavior_peekHeight="@dimen/bottom_sheet_peek_height"
|
|
|
|
app:layout_behavior="@string/bottom_sheet_behavior">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/card_bg_color"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
|
|
|
android:text="@string/add_device"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="@dimen/list_item_title_text_size"
|
|
|
|
app:firstBaselineToTopHeight="28sp"
|
|
|
|
app:typeface="@string/font_roboto_medium" />
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
|
|
|
android:text="@string/enter_device_name_description"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/list_item_description_text_size"
|
|
|
|
app:firstBaselineToTopHeight="28sp"
|
|
|
|
app:lastBaselineToBottomHeight="16sp"
|
|
|
|
app:typeface="@string/font_roboto_regular" />
|
|
|
|
|
|
|
|
<studio.carbonylgroup.textfieldboxes.TextFieldBoxes
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
|
|
|
app:hasClearButton="true"
|
|
|
|
app:labelText="@string/device_name">
|
|
|
|
|
|
|
|
<studio.carbonylgroup.textfieldboxes.ExtendedEditText
|
|
|
|
android:id="@+id/edit_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="text" />
|
|
|
|
|
|
|
|
</studio.carbonylgroup.textfieldboxes.TextFieldBoxes>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/error_text_descr"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginTop="@dimen/content_padding_half"
|
|
|
|
android:letterSpacing="@dimen/text_description_letter_spacing"
|
|
|
|
android:lineSpacingMultiplier="@dimen/text_description_line_spacing_multiplier"
|
|
|
|
android:textSize="@dimen/hint_text_size"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:text="@string/device_name_cannot_be_empty" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-03-04 15:12:06 +01:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2018-10-25 11:52:32 +02:00
|
|
|
|
2020-03-04 15:12:06 +01:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2018-10-25 11:52:32 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/buttons_bottom_bar_height"
|
|
|
|
android:background="?attr/card_bg_color"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingLeft="@dimen/content_padding_half"
|
|
|
|
android:paddingRight="@dimen/content_padding_half">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/secondary_btn"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="@dimen/content_padding_half"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
2018-10-25 13:48:19 +02:00
|
|
|
<FrameLayout
|
2018-10-25 11:52:32 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2018-10-25 13:48:19 +02:00
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/primary_btn"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
android:layout_width="@dimen/progress_bar_size_small"
|
|
|
|
android:layout_height="@dimen/progress_bar_size_small"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2018-10-25 11:52:32 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|