22<FrameLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 android : layout_width =" match_parent"
5- android : layout_height =" match_parent" >
5+ android : layout_height =" match_parent"
6+ xmlns : tools =" http://schemas.android.com/tools" >
67
78 <LinearLayout
89 android : id =" @+id/history_empty"
4546 app : layout_scrollFlags =" scroll"
4647 app : titleCollapseMode =" scale" >
4748
48- <LinearLayout
49+ <com .google.android.material.chip.ChipGroup
50+ android : id =" @+id/status_filter_chips"
4951 android : layout_width =" match_parent"
5052 android : layout_height =" wrap_content"
51- android : orientation =" vertical" >
52-
53- <LinearLayout
54- android : layout_width =" match_parent"
53+ tools : checkedChip =" @id/chip_continue"
54+ app : selectionRequired =" true"
55+ android : paddingHorizontal =" 12dp" >
56+
57+ <com .google.android.material.chip.Chip
58+ style =" @style/Widget.Material3.Chip.Filter"
59+ android : id =" @+id/chip_continue"
60+ android : layout_width =" wrap_content"
5561 android : layout_height =" wrap_content"
56- android : layout_marginBottom =" 10dp"
57- android : orientation =" horizontal" >
58-
59- <com .google.android.material.button.MaterialButton
60- android : id =" @+id/play_all"
61- style =" @style/Widget.Material3.Button.OutlinedButton"
62- android : layout_width =" 0dp"
63- android : layout_height =" wrap_content"
64- android : layout_marginHorizontal =" 10dp"
65- android : layout_weight =" 1"
66- android : maxLines =" 1"
67- android : text =" @string/play_all"
68- app : icon =" @drawable/ic_playlist" />
69-
70- <com .google.android.material.button.MaterialButton
71- android : id =" @+id/clear"
72- style =" @style/Widget.Material3.Button"
73- android : layout_width =" 0dp"
74- android : layout_height =" wrap_content"
75- android : layout_marginHorizontal =" 10dp"
76- android : layout_weight =" 1"
77- android : maxLines =" 1"
78- android : text =" @string/clear_history"
79- app : icon =" @drawable/ic_delete" />
80-
81- </LinearLayout >
82-
83- <FrameLayout
84- android : layout_width =" match_parent"
62+ android : text =" @string/continue_watching" />
63+
64+ <com .google.android.material.chip.Chip
65+ style =" @style/Widget.Material3.Chip.Filter"
66+ android : id =" @+id/chip_finished"
67+ android : layout_width =" wrap_content"
8568 android : layout_height =" wrap_content"
86- android : layout_marginBottom =" 5dp" >
87-
88- <TextView
89- android : id =" @+id/filterTypeTV"
90- android : layout_width =" wrap_content"
91- android : layout_height =" wrap_content"
92- android : layout_gravity =" top"
93- android : layout_marginStart =" 5dp"
94- android : drawablePadding =" 5dp"
95- android : paddingHorizontal =" 10dp"
96- android : text =" @string/all"
97- android : textSize =" 16sp"
98- android : tooltipText =" @string/tooltip_filter"
99- app : drawableEndCompat =" @drawable/ic_filter" />
100-
101- <TextView
102- android : id =" @+id/filterStatusTV"
103- android : layout_width =" wrap_content"
104- android : layout_height =" wrap_content"
105- android : layout_gravity =" end"
106- android : layout_marginEnd =" 5dp"
107- android : drawablePadding =" 5dp"
108- android : paddingHorizontal =" 10dp"
109- android : text =" @string/watched"
110- android : textSize =" 16sp"
111- android : tooltipText =" @string/tooltip_filter"
112- app : drawableEndCompat =" @drawable/ic_filter" />
113-
114- </FrameLayout >
115-
116- </LinearLayout >
69+ android : text =" @string/finished" />
70+
71+ </com .google.android.material.chip.ChipGroup>
11772
11873 </com .google.android.material.appbar.CollapsingToolbarLayout>
11974
12883
12984 </androidx .coordinatorlayout.widget.CoordinatorLayout>
13085
86+ <LinearLayout
87+ android : id =" @+id/history_options"
88+ android : layout_width =" wrap_content"
89+ android : layout_height =" wrap_content"
90+ android : orientation =" vertical"
91+ android : padding =" 16dp"
92+ android : layout_gravity =" end|bottom" >
93+
94+ <com .google.android.material.floatingactionbutton.FloatingActionButton
95+ android : id =" @+id/clear"
96+ style =" ?attr/floatingActionButtonSmallSecondaryStyle"
97+ android : layout_width =" wrap_content"
98+ android : layout_height =" wrap_content"
99+ android : layout_gravity =" end"
100+ android : contentDescription =" @string/clear_history"
101+ android : src =" @drawable/ic_delete"
102+ android : tooltipText =" @string/clear_history"
103+ tools : targetApi =" o"
104+ tools : visibility =" visible" />
105+
106+ <com .google.android.material.floatingactionbutton.FloatingActionButton
107+ android : id =" @+id/play_all"
108+ android : layout_width =" wrap_content"
109+ android : layout_height =" wrap_content"
110+ android : contentDescription =" @string/play_all"
111+ android : src =" @drawable/ic_play"
112+ android : layout_marginTop =" 8dp"
113+ android : tooltipText =" @string/play_all"
114+ tools : visibility =" visible" />
115+
116+ </LinearLayout >
117+
131118</FrameLayout >
0 commit comments