30 lines
6 KiB
XML
30 lines
6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout android:id="@id/sticker_picker_container" android:background="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.Page"
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<com.google.android.material.appbar.AppBarLayout android:id="@id/sticker_app_bar" android:background="@color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/AppTheme.AppBarLayout.Flat">
|
|
<androidx.appcompat.widget.Toolbar android:id="@id/sticker_toolbar" android:layout_height="wrap_content" android:minHeight="0.0dip" app:contentInsetStart="0.0dip" style="@style/AppTheme.Toolbar.Transparent">
|
|
<RelativeLayout android:id="@id/sticker_search_bar" android:background="@drawable/drawable_bg_corners_4dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="12.0dip" android:layout_marginRight="12.0dip" android:layout_marginBottom="8.0dip" android:animateLayoutChanges="true" android:backgroundTint="?colorBackgroundTertiary">
|
|
<com.google.android.material.textfield.TextInputEditText android:id="@id/sticker_search_input" android:background="@null" android:visibility="gone" android:layout_height="wrap_content" android:hint="@string/search_for_stickers" style="@style/ExpressionSearchInput" />
|
|
<ImageView android:id="@id/sticker_search_clear" android:src="@drawable/ic_search_16dp" android:layout_centerVertical="true" android:contentDescription="@string/search_for_stickers" android:layout_alignParentEnd="true" app:tint="?colorTextMuted" style="@style/ExpressionSearchInputClear" />
|
|
</RelativeLayout>
|
|
</androidx.appcompat.widget.Toolbar>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<com.discord.app.AppViewFlipper android:id="@id/chat_input_sticker_picker_view_flipper" android:layout_marginBottom="@dimen/expression_picker_category_bar_height" android:inAnimation="@android:anim/fade_in" android:outAnimation="@android:anim/fade_out" style="@style/UiKit.ViewGroup.AppViewFlipper.InCoordinatorLayout">
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/chat_input_sticker_picker_recycler" android:clipToPadding="false" android:layout_height="fill_parent" android:layout_marginLeft="12.0dip" android:layout_marginRight="12.0dip" android:layout_marginHorizontal="12.0dip" app:layout_behavior="@string/appbar_scrolling_view_behavior" style="@style/UiKit.ViewGroup.RecyclerView" />
|
|
<LinearLayout android:gravity="center" android:id="@id/chat_input_sticker_picker_empty_container" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<ImageView android:layout_gravity="center_horizontal" android:id="@id/chat_input_sticker_picker_empty_image" android:layout_width="72.0dip" android:layout_height="72.0dip" android:src="@drawable/ic_removed_sticker_72dp" android:importantForAccessibility="no" />
|
|
<TextView android:textAppearance="@style/UiKit.TextAppearance.Bold" android:textSize="@dimen/uikit_textsize_xxlarge" android:textColor="?colorHeaderPrimary" android:id="@id/chat_input_sticker_picker_empty_title" android:layout_marginTop="8.0dip" style="@style/UiKit.TextView" />
|
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?colorHeaderSecondary" android:id="@id/chat_input_sticker_picker_empty_subtitle" android:layout_marginLeft="24.0dip" android:layout_marginTop="8.0dip" android:layout_marginRight="24.0dip" style="@style/UiKit.TextView" />
|
|
</LinearLayout>
|
|
</com.discord.app.AppViewFlipper>
|
|
<View android:layout_gravity="bottom" android:id="@id/sticker_picker_bottom_bar_divider" android:background="?colorBackgroundTertiary" android:layout_marginBottom="@dimen/expression_picker_category_bar_height" android:layout_above="@id/sticker_picker_bottom_bar" style="@style/UiKit.Divider" />
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:layout_gravity="bottom" android:id="@id/sticker_picker_bottom_bar" android:background="?colorBackgroundSecondary" android:layout_width="fill_parent" android:layout_height="@dimen/expression_picker_category_bar_height" android:paddingStart="8.0dip" android:paddingEnd="8.0dip" android:elevation="8.0dip" style="@style/UiKit.ViewGroup.ConstraintLayout">
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/sticker_picker_category_recycler" android:layout_width="0.0dip" android:layout_height="fill_parent" android:contentDescription="@string/categories" app:layout_constraintEnd_toStartOf="@id/sticker_picker_category_barrier" app:layout_constraintStart_toStartOf="parent" />
|
|
<androidx.constraintlayout.widget.Barrier android:id="@id/sticker_picker_category_barrier" android:layout_width="0.0dip" android:layout_height="fill_parent" app:barrierDirection="start" app:constraint_referenced_ids="sticker_picker_store_icon, sticker_picker_backspace_icon" />
|
|
<FrameLayout android:id="@id/sticker_picker_store_icon" app:layout_constraintEnd_toStartOf="@id/sticker_picker_backspace_icon" style="@style/ExpressionPickerCategoryItem">
|
|
<ImageView android:layout_gravity="center" android:layout_width="24.0dip" android:layout_height="24.0dip" android:src="@drawable/ic_sticker_pack_store_32dp" android:scaleType="fitCenter" android:contentDescription="@string/sticker_purchase_modal_header" />
|
|
<include android:id="@id/sticker_picker_store_hightlight" layout="@layout/expression_picker_category_selection_overline_view" />
|
|
</FrameLayout>
|
|
<ImageView android:id="@id/sticker_picker_backspace_icon" android:src="@drawable/ic_backspace_white_24dp" android:contentDescription="@string/delete" app:layout_constraintEnd_toEndOf="parent" app:tint="?colorInteractiveNormal" style="@style/ExpressionPickerButtonIcon" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |