discord-jadx/app/src/main/res/layout/widget_channels_list.xml

33 lines
9.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<com.discord.utilities.view.rounded.RoundedCoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/widget_channels_list_container" android:background="?attr/colorBackgroundSecondary" android:layout_height="match_parent" app:topLeftRadius="@dimen/tab_host_corner_radius" app:topRightRadius="@dimen/tab_host_corner_radius" style="@style/res_2131952587_uikit_viewgroup">
<com.discord.views.CustomAppBarLayout android:id="@+id/app_bar_layout" android:background="?attr/colorBackgroundSecondary" style="@style/res_2131951637_apptheme_appbarlayout">
<com.google.android.material.appbar.CollapsingToolbarLayout android:id="@+id/collapsing_toolbar" android:layout_width="match_parent" android:layout_height="match_parent" app:contentScrim="?attr/colorBackgroundSecondary" app:scrimVisibleHeightTrigger="0dp">
<FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/channels_list_banner" android:layout_width="match_parent" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxHeight="150dp" app:actualImageScaleType="6"/>
<FrameLayout android:id="@+id/channels_list_banner_foreground" android:background="@drawable/drawable_top_down_black_40_alpha_gradient" android:layout_width="match_parent" android:layout_height="48dp"/>
</FrameLayout>
<androidx.appcompat.widget.Toolbar android:id="@+id/channels_toolbar" android:background="@null" style="@style/res_2131951666_apptheme_toolbar">
<TextView android:textAppearance="@style/res_2131952564_uikit_textview_h1_bold" android:textSize="18sp" android:textColor="?attr/colorInteractiveActive" android:gravity="center_vertical" android:id="@+id/channels_list_header" android:paddingRight="16dp" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:singleLine="true" android:drawablePadding="4dp" app:drawableEndCompat="?attr/ic_overflow" app:drawableRightCompat="?attr/ic_overflow" style="@style/res_2131952561_uikit_textview"/>
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.CollapsingToolbarLayout>
<androidx.appcompat.widget.Toolbar android:id="@+id/channels_list_private_channels_header" android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content" app:contentInsetStart="0dp">
<androidx.constraintlayout.widget.ConstraintLayout android:background="@color/transparent" android:paddingTop="8dp" android:paddingBottom="16dp" android:paddingStart="16dp" android:paddingEnd="8dp" style="@style/res_2131952589_uikit_viewgroup_constraintlayout">
<TextView android:textAppearance="@style/res_2131952566_uikit_textview_h2_bold" android:textColor="?attr/colorInteractiveActive" android:id="@+id/channels_list_direct_messages_title" android:paddingTop="8dp" android:paddingBottom="8dp" android:visibility="visible" android:text="@string/direct_messages" app:layout_constraintEnd_toStartOf="@+id/channels_list_start_group" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/res_2131952561_uikit_textview"/>
<androidx.appcompat.widget.AppCompatImageView android:id="@+id/channels_list_start_group" android:background="?attr/bg_pressed_highlight" android:padding="8dp" android:src="@drawable/ic_group_add_white_24dp" android:contentDescription="@string/create_dm" app:layout_constraintEnd_toEndOf="0" app:layout_constraintTop_toTopOf="0" app:tint="?attr/colorInteractiveNormal" style="@style/res_2131952448_uikit_imageview"/>
<TextView android:textAppearance="@style/res_2131952531_uikit_textappearance" android:textColor="?attr/colorTextMuted" android:gravity="center_vertical" android:id="@+id/channels_list_search" android:background="@drawable/rounded_rectangle_4dp_radius" android:paddingTop="8dp" android:paddingBottom="8dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:foreground="?attr/bg_pressed_highlight" android:text="@string/dm_search_placeholder" android:paddingStart="8dp" android:paddingEnd="8dp" android:layout_marginEnd="8dp" android:backgroundTint="?attr/colorBackgroundTertiary" app:drawableEndCompat="@drawable/ic_search_16dp" app:drawableTint="?attr/colorTextMuted" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/channels_list_direct_messages_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.appcompat.widget.Toolbar>
</com.discord.views.CustomAppBarLayout>
<com.discord.widgets.friends.EmptyFriendsStateView android:id="@+id/widget_channels_list_empty_friends_state_view" android:padding="16dp" android:layout_width="match_parent" android:layout_height="match_parent" app:ef_title_text_size="@dimen/uikit_textsize_large"/>
<com.discord.widgets.friends.EmptyFriendsStateContactSyncView android:id="@+id/widget_channels_list_empty_friends_state_cs_view" android:padding="16dp" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginBottom="40dp" app:ef_title_text_size="@dimen/uikit_textsize_large"/>
<androidx.recyclerview.widget.RecyclerView android:id="@+id/channels_list" android:paddingBottom="8dp" android:visibility="gone" android:scrollbars="vertical" android:clipToPadding="false" android:layout_height="match_parent" android:layout_below="@+id/channels_list_search" android:overScrollMode="never" style="@style/res_2131952604_uikit_viewgroup_recyclerview_appbarscrollingviewbehavior"/>
<ViewStub android:id="@+id/channels_list_unreads_stub" android:layout="@layout/widget_channels_list_unreads" android:layout_width="match_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="16dp" android:layout_marginTop="48dp" android:layout_marginRight="28dp" android:translationZ="16dp" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<View android:id="@+id/channels_list_tooltip_top_tail" android:background="@drawable/drawable_tooltip_top_tail" android:layout_width="24dp" android:layout_height="20dp" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0"/>
<View android:id="@+id/channels_list_tooltip_background" android:background="@drawable/drawable_bg_tooltip" android:layout_width="match_parent" android:layout_height="0dp" android:translationY="-8dp" app:layout_constraintBottom_toBottomOf="0" 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="0dp" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="@string/premium_guild_subscription_header_subscribe_tooltip_header" android:lineSpacingMultiplier="1" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="@+id/channels_list_tooltip_background" style="@style/res_2131952577_uikit_textview_semibold"/>
<TextView android:textColor="@color/white" android:gravity="center" android:id="@+id/channels_list_premium_guild_hint_subtitle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:text="@string/premium_guild_subscription_header_subscribe_tooltip_text" android:lineSpacingMultiplier="1" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/channels_list_premium_guild_hint_title" style="@style/res_2131952561_uikit_textview"/>
<com.google.android.material.button.MaterialButton android:theme="@style/res_2131951648_apptheme_dark" android:textColor="?attr/color_brand_500" android:id="@+id/channels_list_premium_guild_hint_button" android:layout_width="0dp" android:layout_marginLeft="16dp" android:layout_marginTop="8dp" android:layout_marginRight="16dp" android:layout_marginBottom="24dp" android:text="@string/premium_guild_subscription_header_subscribe_tooltip_close" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/channels_list_premium_guild_hint_subtitle" style="@style/res_2131952471_uikit_material_button_white"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.discord.utilities.view.rounded.RoundedCoordinatorLayout>