31 lines
5.1 KiB
XML
31 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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 style="@style/AppTheme.AppBarLayout.Flat">
|
|
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<LinearLayout android:clipChildren="false" android:clipToPadding="false" android:layout_height="fill_parent" app:layout_behavior="@string/action_bar_scrolling_view_behavior" style="@style/UiKit.ViewGroup.Page.LinearLayout">
|
|
<com.discord.app.AppViewFlipper android:id="@id/guild_invite_suggestions_flipper" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
|
|
<ImageView android:layout_gravity="center" android:layout_margin="@dimen/uikit_spacing_xlarge" android:src="?img_empty_server_invites" android:scaleType="centerInside" android:importantForAccessibility="no" app:layout_behavior="@string/action_bar_scrolling_view_behavior" style="@style/UiKit.ImageView" />
|
|
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<include layout="@layout/layout_search" />
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/guild_invite_suggestion_list" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_weight="1.0" style="@style/UiKit.ViewGroup.RecyclerView" />
|
|
<TextView android:id="@id/guild_invite_empty_results" android:visibility="gone" style="@style/UiKit.TextView.NoResults" />
|
|
</LinearLayout>
|
|
</com.discord.app.AppViewFlipper>
|
|
<View android:background="@color/colorPrimaryDark" style="@style/UiKit.Divider" />
|
|
<LinearLayout android:background="?primary_630" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<TextView android:layout_gravity="center" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/invite_footer_link_header" style="@style/UiKit.TextView.Subtext" />
|
|
<LinearLayout android:background="@drawable/drawable_bg_outline_dark" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:ellipsize="start" android:gravity="center_vertical" android:id="@id/guild_invite_link" android:background="?selectableItemBackground" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_width="0.0dip" android:layout_height="fill_parent" android:text="@string/invite_link_example_verified" android:singleLine="true" android:layout_weight="1.0" android:paddingStart="@dimen/uikit_spacing_large" android:paddingEnd="@dimen/uikit_spacing_large" style="@style/UiKit.TextView.Bold" />
|
|
<ImageView android:id="@id/guild_invite_settings_edit" android:background="?selectableItemBackgroundBorderless" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="10.0dip" android:paddingRight="@dimen/uikit_spacing_large" android:paddingBottom="10.0dip" android:layout_width="46.0dip" android:layout_height="46.0dip" android:src="?ic_settings" android:scaleType="centerCrop" android:contentDescription="@string/share_invite_link_for_access" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout android:background="?primary_630" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<com.discord.views.CheckedSetting android:id="@id/guild_invite_never_expire" android:layout_marginLeft="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_small" app:cs_subtext="@string/invite_links_expire_after_1_day" app:cs_text="@string/set_invite_link_never_expire" app:cs_view_type="switchview" style="@style/UiKit.CheckedSetting.Themed" />
|
|
<Button android:id="@id/guild_invite_share_btn" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:text="@string/share_link" style="@style/UiKit.Button" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<View android:id="@id/bottom_sheet_tint" android:background="@color/black_alpha_60" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
|
<com.discord.widgets.guilds.invite.ViewInviteSettingsSheet android:id="@id/invite_settings_bottom_sheet" android:background="?primary_630" style="@style/UiKit.ViewGroup.LinearLayout.BottomSheet" />
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |