32 lines
4.6 KiB
XML
32 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/UiKit_ViewGroup_Page">
|
|
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme_AppBarLayout">
|
|
<androidx.appcompat.widget.Toolbar style="@style/AppTheme_Toolbar"/>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<androidx.core.widget.NestedScrollView style="@style/UiKit_ViewGroup_NestedScrollView_AppBarScrollingViewBehavior">
|
|
<LinearLayout android:paddingBottom="64dp" android:focusableInTouchMode="true" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<androidx.cardview.widget.CardView android:layout_margin="16dp" app:cardBackgroundColor="?attr/colorBackgroundTertiary" style="@style/UiKit_ViewGroup">
|
|
<RelativeLayout android:gravity="center_vertical" android:layout_height="wrap_content" style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
|
|
<FrameLayout android:id="@+id/set_custom_status_emoji_button" android:layout_alignTop="@+id/set_custom_status_text" android:layout_alignBottom="@+id/set_custom_status_text" android:paddingStart="16dp" android:paddingEnd="16dp" style="@style/UiKit_ImageView">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@+id/set_custom_status_emoji" android:layout_width="@dimen/custom_status_emoji_preview_size" android:layout_height="@dimen/custom_status_emoji_preview_size" android:contentDescription="@string/select_emoji" app:actualImageScaleType="2"/>
|
|
</FrameLayout>
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@+id/set_custom_status_text" android:hint="@string/custom_status_set_custom_status" android:layout_toEndOf="@+id/set_custom_status_emoji_button" app:endIconContentDescription="@string/custom_status_clear_custom_status" app:endIconDrawable="@drawable/ic_clear_24dp" app:endIconMode="-1" app:endIconTint="?attr/colorInteractiveNormal" style="@style/UiKit_TextInputLayout">
|
|
<com.google.android.material.textfield.TextInputEditText android:maxLength="128" android:inputType="text|textCapSentences|textAutoCorrect|textAutoComplete" android:imeOptions="actionDone" style="@style/UiKit_TextInputLayout_EditText_SingleLine">
|
|
<requestFocus/>
|
|
</com.google.android.material.textfield.TextInputEditText>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</RelativeLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<RadioGroup android:id="@+id/set_custom_status_expiration" android:layout_margin="8dp" style="@style/UiKit_ViewGroup">
|
|
<com.google.android.material.radiobutton.MaterialRadioButton android:id="@+id/set_custom_status_expiration_never" android:text="@string/custom_status_dont_clear" style="@style/UiKit_ListItem_Icon_Radio"/>
|
|
<com.google.android.material.radiobutton.MaterialRadioButton android:id="@+id/set_custom_status_expiration_30_minutes" android:text="@string/custom_status_clear_in_minutes" style="@style/UiKit_ListItem_Icon_Radio"/>
|
|
<com.google.android.material.radiobutton.MaterialRadioButton android:id="@+id/set_custom_status_expiration_1_hour" android:text="@string/custom_status_clear_in_hours" style="@style/UiKit_ListItem_Icon_Radio"/>
|
|
<com.google.android.material.radiobutton.MaterialRadioButton android:id="@+id/set_custom_status_expiration_4_hours" android:text="@string/custom_status_clear_in_hours" style="@style/UiKit_ListItem_Icon_Radio"/>
|
|
<com.google.android.material.radiobutton.MaterialRadioButton android:id="@+id/set_custom_status_expiration_tomorrow" android:text="@string/custom_status_clear_tomorrow" style="@style/UiKit_ListItem_Icon_Radio"/>
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
<ImageView android:layout_gravity="bottom|center_vertical|center_horizontal|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/img_wumpus_custom_status" android:importantForAccessibility="no" style="@style/UiKit_ImageView_HideInLandscape"/>
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/set_custom_status_save" android:visibility="visible" android:contentDescription="@string/save_changes" style="@style/Settings_FloatingActionButton_Save"/>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|