|
|
@ -3,13 +3,14 @@ |
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="match_parent"> |
|
|
|
|
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:background="?attr/colorSurface"> |
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout |
|
|
<com.google.android.material.appbar.AppBarLayout |
|
|
android:id="@+id/appbar" |
|
|
android:id="@+id/appbar" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:background="@android:color/transparent" |
|
|
|
|
|
|
|
|
android:background="?attr/colorSurface" |
|
|
android:elevation="0dp"> |
|
|
android:elevation="0dp"> |
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
<LinearLayout |
|
|
@ -37,7 +38,8 @@ |
|
|
android:layout_weight="1" |
|
|
android:layout_weight="1" |
|
|
android:gravity="center" |
|
|
android:gravity="center" |
|
|
android:text="@string/multiplayer_room_browser" |
|
|
android:text="@string/multiplayer_room_browser" |
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleLarge" /> |
|
|
|
|
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleLarge" |
|
|
|
|
|
android:textColor="?attr/colorOnSurface" /> |
|
|
|
|
|
|
|
|
<FrameLayout |
|
|
<FrameLayout |
|
|
android:layout_width="48dp" |
|
|
android:layout_width="48dp" |
|
|
@ -75,7 +77,8 @@ |
|
|
android:layout_marginStart="16dp" |
|
|
android:layout_marginStart="16dp" |
|
|
android:layout_marginEnd="16dp" |
|
|
android:layout_marginEnd="16dp" |
|
|
android:layout_marginTop="12dp" |
|
|
android:layout_marginTop="12dp" |
|
|
app:cardCornerRadius="24dp"> |
|
|
|
|
|
|
|
|
app:cardCornerRadius="24dp" |
|
|
|
|
|
app:cardBackgroundColor="?attr/colorSurfaceVariant"> |
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
<LinearLayout |
|
|
android:id="@+id/search_container" |
|
|
android:id="@+id/search_container" |
|
|
@ -91,6 +94,7 @@ |
|
|
android:layout_gravity="center_vertical" |
|
|
android:layout_gravity="center_vertical" |
|
|
android:layout_marginEnd="16dp" |
|
|
android:layout_marginEnd="16dp" |
|
|
android:src="@drawable/ic_search" |
|
|
android:src="@drawable/ic_search" |
|
|
|
|
|
android:contentDescription="@string/home_search" |
|
|
app:tint="?attr/colorOnSurfaceVariant" /> |
|
|
app:tint="?attr/colorOnSurfaceVariant" /> |
|
|
|
|
|
|
|
|
<EditText |
|
|
<EditText |
|
|
@ -101,7 +105,9 @@ |
|
|
android:hint="@string/multiplayer_search_public_lobbies" |
|
|
android:hint="@string/multiplayer_search_public_lobbies" |
|
|
android:imeOptions="flagNoFullscreen" |
|
|
android:imeOptions="flagNoFullscreen" |
|
|
android:inputType="text" |
|
|
android:inputType="text" |
|
|
android:maxLines="1" /> |
|
|
|
|
|
|
|
|
android:maxLines="1" |
|
|
|
|
|
android:textColor="?attr/colorOnSurface" |
|
|
|
|
|
android:autofillHints="" /> |
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
@ -113,6 +119,7 @@ |
|
|
android:layout_marginEnd="48dp" |
|
|
android:layout_marginEnd="48dp" |
|
|
android:background="?attr/selectableItemBackground" |
|
|
android:background="?attr/selectableItemBackground" |
|
|
android:src="@drawable/ic_clear" |
|
|
android:src="@drawable/ic_clear" |
|
|
|
|
|
android:contentDescription="@string/clear" |
|
|
android:visibility="invisible" |
|
|
android:visibility="invisible" |
|
|
app:tint="?attr/colorOnSurfaceVariant" |
|
|
app:tint="?attr/colorOnSurfaceVariant" |
|
|
tools:visibility="visible" /> |
|
|
tools:visibility="visible" /> |
|
|
@ -154,19 +161,33 @@ |
|
|
android:id="@+id/chip_hide_empty" |
|
|
android:id="@+id/chip_hide_empty" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
android:checkable="true" |
|
|
android:checkable="true" |
|
|
android:checked="false" |
|
|
android:checked="false" |
|
|
android:text="@string/multiplayer_hide_empty_rooms" |
|
|
android:text="@string/multiplayer_hide_empty_rooms" |
|
|
app:chipCornerRadius="16dp" /> |
|
|
|
|
|
|
|
|
app:chipCornerRadius="16dp" |
|
|
|
|
|
app:chipIconTint="?attr/colorOnSurface" |
|
|
|
|
|
app:chipIconSize="18dp" |
|
|
|
|
|
android:paddingStart="8dp" |
|
|
|
|
|
android:paddingEnd="8dp" |
|
|
|
|
|
android:paddingTop="6dp" |
|
|
|
|
|
android:paddingBottom="6dp" /> |
|
|
|
|
|
|
|
|
<com.google.android.material.chip.Chip |
|
|
<com.google.android.material.chip.Chip |
|
|
android:id="@+id/chip_hide_full" |
|
|
android:id="@+id/chip_hide_full" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
android:layout_marginStart="8dp" |
|
|
android:checkable="true" |
|
|
android:checkable="true" |
|
|
android:checked="false" |
|
|
android:checked="false" |
|
|
android:text="@string/multiplayer_hide_full_rooms" |
|
|
android:text="@string/multiplayer_hide_full_rooms" |
|
|
app:chipCornerRadius="16dp" /> |
|
|
|
|
|
|
|
|
app:chipCornerRadius="16dp" |
|
|
|
|
|
app:chipIconTint="?attr/colorOnSurface" |
|
|
|
|
|
app:chipIconSize="18dp" |
|
|
|
|
|
android:paddingStart="8dp" |
|
|
|
|
|
android:paddingEnd="8dp" |
|
|
|
|
|
android:paddingTop="6dp" |
|
|
|
|
|
android:paddingBottom="6dp" /> |
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
</HorizontalScrollView> |
|
|
</HorizontalScrollView> |
|
|
@ -198,6 +219,7 @@ |
|
|
android:layout_height="72dp" |
|
|
android:layout_height="72dp" |
|
|
android:layout_marginBottom="16dp" |
|
|
android:layout_marginBottom="16dp" |
|
|
android:src="@drawable/ic_refresh" |
|
|
android:src="@drawable/ic_refresh" |
|
|
|
|
|
android:contentDescription="@string/refresh" |
|
|
android:alpha="0.5" |
|
|
android:alpha="0.5" |
|
|
app:tint="?attr/colorOnSurface" /> |
|
|
app:tint="?attr/colorOnSurface" /> |
|
|
|
|
|
|
|
|
@ -205,14 +227,16 @@ |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:text="@string/multiplayer_no_rooms_found" |
|
|
android:text="@string/multiplayer_no_rooms_found" |
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium" /> |
|
|
|
|
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.TitleMedium" |
|
|
|
|
|
android:textColor="?attr/colorOnSurface" /> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginTop="8dp" |
|
|
android:layout_marginTop="8dp" |
|
|
android:text="@string/multiplayer_tap_refresh_to_check_again" |
|
|
android:text="@string/multiplayer_tap_refresh_to_check_again" |
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium" /> |
|
|
|
|
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium" |
|
|
|
|
|
android:textColor="?attr/colorOnSurface" /> |
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton |
|
|
<com.google.android.material.button.MaterialButton |
|
|
android:id="@+id/empty_refresh_button" |
|
|
android:id="@+id/empty_refresh_button" |
|
|
@ -220,7 +244,8 @@ |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_marginTop="16dp" |
|
|
android:layout_marginTop="16dp" |
|
|
android:text="@string/refresh" |
|
|
android:text="@string/refresh" |
|
|
app:icon="@drawable/ic_refresh" /> |
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_refresh" |
|
|
|
|
|
style="@style/Widget.Material3.Button.ElevatedButton" /> |
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |