search: implement chip pattern prototype
very rough right now, settings are not final at all
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
android:transitionGroup="true">
|
||||
|
||||
<org.oxycblt.auxio.ui.CoordinatorAppBarLayout
|
||||
android:id="@+id/search_appbar"
|
||||
style="@style/Widget.Auxio.AppBarLayout"
|
||||
app:liftOnScroll="true"
|
||||
app:liftOnScrollTargetViewId="@id/search_recycler">
|
||||
@@ -15,13 +16,13 @@
|
||||
<org.oxycblt.auxio.ui.MultiToolbar
|
||||
android:id="@+id/search_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
app:layout_scrollFlags="scroll|enterAlways"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<org.oxycblt.auxio.ui.AuxioToolbar
|
||||
android:id="@+id/search_normal_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:menu="@menu/toolbar_search"
|
||||
app:navigationIcon="@drawable/ic_back_24">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
@@ -49,8 +50,78 @@
|
||||
|
||||
</org.oxycblt.auxio.ui.MultiToolbar>
|
||||
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:scrollbars="none">
|
||||
|
||||
<com.google.android.material.chip.ChipGroup
|
||||
android:id="@+id/search_filters"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:paddingHorizontal="@dimen/spacing_medium"
|
||||
app:singleLine="true">
|
||||
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/search_filter_songs"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:checkable="true"
|
||||
android:text="@string/lbl_songs" />
|
||||
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/search_filter_albums"
|
||||
android:layout_width="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:checkable="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lbl_albums" />
|
||||
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/search_filter_artists"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:checkable="true"
|
||||
android:text="@string/lbl_artists" />
|
||||
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/search_filter_genres"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:checkable="true"
|
||||
android:focusable="true"
|
||||
android:text="@string/lbl_genres" />
|
||||
|
||||
<com.google.android.material.chip.Chip
|
||||
android:id="@+id/search_filter_playlists"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:checkable="true"
|
||||
android:text="@string/lbl_playlists" />
|
||||
|
||||
</com.google.android.material.chip.ChipGroup>
|
||||
|
||||
</HorizontalScrollView>
|
||||
</org.oxycblt.auxio.ui.CoordinatorAppBarLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/search_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:animateLayoutChanges="true"
|
||||
android:clipToPadding="false"
|
||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
|
||||
|
||||
<org.oxycblt.auxio.list.recycler.AuxioRecyclerView
|
||||
android:id="@+id/search_recycler"
|
||||
style="@style/Widget.Auxio.RecyclerView.Grid"
|
||||
@@ -59,4 +130,6 @@
|
||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
||||
tools:listitem="@layout/item_song" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
Reference in New Issue
Block a user