27 lines
No EOL
7.1 KiB
XML
27 lines
No EOL
7.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout android:background="?colorBackgroundSecondary" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup"
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<com.discord.views.CustomAppBarLayout android:id="@id/app_bar_layout" android:background="?colorBackgroundSecondary" style="@style/AppTheme.AppBarLayout">
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout android:id="@id/collapsing_toolbar" android:layout_width="fill_parent" android:layout_height="fill_parent" app:contentScrim="?colorBackgroundSecondary" app:layout_scrollFlags="exitUntilCollapsed|scroll" app:scrimVisibleHeightTrigger="0.0dip">
|
|
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/channels_list_banner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxHeight="150.0dip" app:actualImageScaleType="centerCrop" />
|
|
<FrameLayout android:id="@id/channels_list_banner_foreground" android:background="@drawable/drawable_top_down_primary_630_gradient" android:layout_width="fill_parent" android:layout_height="48.0dip" />
|
|
</FrameLayout>
|
|
<androidx.appcompat.widget.Toolbar android:id="@id/channels_toolbar" android:background="@null" style="@style/AppTheme.Toolbar">
|
|
<TextView android:textSize="15.0sp" android:textColor="?colorInteractiveActive" android:gravity="center_vertical" android:id="@id/channels_list_header" android:paddingRight="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_height="?actionBarSize" android:singleLine="true" android:shadowColor="?colorBackgroundSecondary" android:shadowDy="4.0" android:shadowRadius="2.0" android:drawableRight="?ic_overflow" android:drawablePadding="@dimen/uikit_spacing_small" android:drawableEnd="?ic_overflow" style="@style/UiKit.TextView.Bold" />
|
|
</androidx.appcompat.widget.Toolbar>
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
<androidx.appcompat.widget.Toolbar android:id="@id/channels_list_search_toolbar" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
<com.google.android.material.button.MaterialButton android:textAppearance="@style/UiKit.TextView" android:textColor="?colorTextNormal" android:gravity="center_vertical" android:id="@id/channels_list_search" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/dm_search_placeholder" android:drawableEnd="@drawable/ic_search" android:backgroundTint="?colorBackgroundTertiary" android:drawableTint="?colorTextNormal" />
|
|
</androidx.appcompat.widget.Toolbar>
|
|
</com.discord.views.CustomAppBarLayout>
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/channels_list" android:paddingBottom="@dimen/uikit_spacing_medium" android:scrollbars="vertical" android:clipToPadding="false" android:layout_height="fill_parent" android:layout_below="@id/channels_list_search" android:overScrollMode="never" style="@style/UiKit.ViewGroup.RecyclerView.AppBarScrollingViewBehavior" />
|
|
<ViewStub android:id="@id/channels_list_unreads_stub" android:layout="@layout/widget_channels_list_unreads" android:layout_width="fill_parent" android:layout_height="wrap_content" app:layout_anchor="@id/channels_list" />
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:gravity="center" android:layout_gravity="end" android:id="@id/channels_list_premium_guild_hint" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="48.0dip" android:layout_marginRight="28.0dip" android:translationZ="16.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<View android:id="@id/channels_list_tooltip_top_tail" android:background="@drawable/drawable_tooltip_top_tail" android:layout_width="24.0dip" android:layout_height="20.0dip" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" />
|
|
<View android:id="@id/channels_list_tooltip_background" android:background="@drawable/drawable_bg_tooltip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:translationY="-8.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/channels_list_tooltip_top_tail" />
|
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:gravity="center" android:id="@id/channels_list_premium_guild_hint_title" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/premium_guild_subscription_header_subscribe_tooltip_header" android:lineSpacingMultiplier="1.0" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="@id/channels_list_tooltip_background" style="@style/UiKit.TextView.Semibold" />
|
|
<TextView android:textColor="@color/white" android:gravity="center" android:id="@id/channels_list_premium_guild_hint_subtitle" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/premium_guild_subscription_header_subscribe_tooltip_text" android:lineSpacingMultiplier="1.0" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/channels_list_premium_guild_hint_title" style="@style/UiKit.TextView" />
|
|
<com.google.android.material.button.MaterialButton android:theme="@style/AppTheme.Dark" android:textColor="@color/brand_500" android:id="@id/channels_list_premium_guild_hint_button" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" android:text="@string/premium_guild_subscription_header_subscribe_tooltip_close" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/channels_list_premium_guild_hint_subtitle" style="@style/UiKit.Material.Button.White" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |