-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #471 from Reco1I/filters
Introduce beatmap listing filters
- Loading branch information
Showing
10 changed files
with
485 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/frg_background" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<LinearLayout | ||
android:id="@+id/frg_body" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:background="#212133" | ||
android:orientation="horizontal" | ||
android:padding="8dp"> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="#FFF" | ||
android:alpha="0.75" | ||
android:padding="6dp" | ||
android:text="Sort by" /> | ||
|
||
<Button | ||
android:id="@+id/sort" | ||
style="@style/button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingRight="4dp" | ||
android:maxHeight="48dp" | ||
android:drawableRight="@drawable/arrow_drop_down_24px" | ||
android:text="Ranked status" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="8dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:alpha="0.75" | ||
android:textColor="#FFF" | ||
android:padding="6dp" | ||
android:text="Order" /> | ||
|
||
<Button | ||
android:id="@+id/order" | ||
style="@style/button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:maxHeight="48dp" | ||
android:text="Ascendent" /> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_marginLeft="8dp" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:alpha="0.75" | ||
android:textColor="#FFF" | ||
android:padding="6dp" | ||
android:text="Status" /> | ||
|
||
<Button | ||
android:id="@+id/status" | ||
style="@style/button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingRight="4dp" | ||
android:maxHeight="48dp" | ||
android:drawableRight="@drawable/arrow_drop_down_24px" | ||
android:text="Ranked" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/frg_background" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<LinearLayout | ||
android:id="@+id/frg_body" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/rounded_rect" | ||
android:backgroundTint="#FF28283D" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/list" | ||
android:layout_width="match_parent" | ||
android:layout_height="0px" | ||
android:layout_weight="1" | ||
android:fadingEdge="vertical" | ||
android:padding="8dp" | ||
tools:itemCount="16" | ||
tools:listitem="@layout/dialog_select_item" /> | ||
|
||
</LinearLayout> | ||
|
||
</RelativeLayout> |
Oops, something went wrong.