33 lines
No EOL
4.1 KiB
XML
33 lines
No EOL
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout android:background="?colorPrimary" style="@style/UiKit.ViewGroup.CoordinatorLayout.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:background="?primary_630" style="@style/AppTheme.AppBarLayout">
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@id/global_search_bar" style="@style/UiKit.TextInputLayout.Search.ActionBar.Filter">
|
|
<com.google.android.material.textfield.TextInputEditText android:hint="@string/quickswitcher_placeholder" style="@style/UiKit.TextInputLayout.EditText.SingleLine.Search">
|
|
<requestFocus />
|
|
</com.google.android.material.textfield.TextInputEditText>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/global_search_guild_list" style="@style/UiKit.GuildsList.Horiz" />
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<com.discord.app.AppViewFlipper android:id="@id/global_search_view_flipper" android:background="?colorBackgroundPrimary" android:inAnimation="@anim/anim_fade_in" android:outAnimation="@anim/anim_fade_out" style="@style/UiKit.ViewGroup.AppViewFlipper.InCoordinatorLayout">
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@id/global_search_recycler" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_xxxlarge" android:scrollbars="vertical" android:clipToPadding="false" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.RecyclerView" />
|
|
<androidx.cardview.widget.CardView android:layout_margin="@dimen/uikit_spacing_large" app:cardBackgroundColor="?colorBackgroundSecondary" app:cardElevation="0.0dip" style="@style/UiKit.ViewGroup">
|
|
<LinearLayout android:gravity="center_horizontal" android:layout_margin="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<ImageView android:src="@drawable/img_quick_switcher_empty" android:importantForAccessibility="no" style="@style/UiKit.ImageView" />
|
|
<TextView android:layout_margin="@dimen/uikit_spacing_large" android:text="@string/quickswitcher_tutorial_message_search" style="@style/UiKit.TextView" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.core.widget.NestedScrollView style="@style/UiKit.ViewGroup.NestedScrollView">
|
|
<androidx.cardview.widget.CardView android:layout_margin="@dimen/uikit_spacing_large" app:cardBackgroundColor="?colorBackgroundSecondary" app:cardElevation="0.0dip" style="@style/UiKit.ViewGroup">
|
|
<LinearLayout android:gravity="center_horizontal" android:layout_margin="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
<ImageView android:src="?img_empty_search" android:contentDescription="@string/search_no_results" style="@style/UiKit.ImageView.HideInLandscape" />
|
|
<TextView android:drawableTop="@null" style="@style/UiKit.TextView.NoResults" />
|
|
<View android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginBottom="@dimen/uikit_spacing_small" style="@style/UiKit.Divider" />
|
|
<TextView android:layout_margin="@dimen/uikit_spacing_medium" android:text="@string/other_options" style="@style/UiKit.TextView.H2" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/global_search_add_a_friend_btn" android:text="@string/add_friend" style="@style/UiKit.Material.Button" />
|
|
<com.google.android.material.button.MaterialButton android:id="@id/global_search_join_guild_btn" android:text="@string/join_server_button_cta" style="@style/UiKit.Material.Button" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</com.discord.app.AppViewFlipper>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |