|
36 | 36 | android:layout_height="25dp" |
37 | 37 | android:layout_gravity="end|center_vertical" |
38 | 38 | android:layout_marginStart="10dp" |
39 | | - android:padding="2dp" |
40 | 39 | android:background="?selectableItemBackgroundBorderless" |
41 | 40 | android:contentDescription="@string/change_providers_img_des" |
42 | 41 | android:focusable="true" |
43 | 42 | android:nextFocusLeft="@id/navigation_library" |
44 | 43 | android:nextFocusRight="@id/library_sort" |
45 | | - android:tag="@string/tv_no_focus_tag" |
| 44 | + android:padding="2dp" |
46 | 45 | android:src="@drawable/ic_baseline_extension_24" |
| 46 | + android:tag="@string/tv_no_focus_tag" |
47 | 47 | app:tint="?attr/textColor" /> |
48 | 48 |
|
49 | 49 | <ImageView |
|
57 | 57 | android:focusable="true" |
58 | 58 | android:nextFocusLeft="@id/provider_selector" |
59 | 59 | android:nextFocusRight="@id/list_selector" |
60 | | - android:tag="@string/tv_no_focus_tag" |
61 | 60 | android:src="@drawable/ic_baseline_sort_24" |
| 61 | + android:tag="@string/tv_no_focus_tag" |
62 | 62 | app:tint="?attr/textColor" /> |
63 | 63 |
|
64 | 64 | <ImageView |
65 | 65 | android:id="@+id/list_selector" |
66 | 66 | android:layout_width="25dp" |
67 | 67 | android:layout_height="25dp" |
68 | 68 | android:layout_gravity="end|center_vertical" |
69 | | - android:padding="1dp" |
70 | 69 | android:layout_marginStart="10dp" |
71 | 70 | android:background="?selectableItemBackgroundBorderless" |
72 | 71 | android:contentDescription="@string/change_providers_img_des" |
73 | 72 | android:focusable="true" |
74 | 73 | android:nextFocusLeft="@id/library_sort" |
75 | 74 | android:nextFocusRight="@id/main_search" |
76 | | - android:tag="@string/tv_no_focus_tag" |
| 75 | + android:padding="1dp" |
77 | 76 | android:src="@drawable/ic_baseline_filter_list_24" |
| 77 | + android:tag="@string/tv_no_focus_tag" |
78 | 78 | app:tint="?attr/textColor" /> |
79 | 79 |
|
80 | 80 | <FrameLayout |
|
91 | 91 | android:layout_height="match_parent" |
92 | 92 | android:layout_gravity="end" |
93 | 93 |
|
| 94 | + android:focusable="true" |
94 | 95 | android:iconifiedByDefault="false" |
95 | 96 | android:imeOptions="actionSearch" |
96 | 97 | android:inputType="text" |
97 | | - android:focusable="true" |
98 | | - android:tag="tv_no_focus_tag" |
99 | 98 | android:nextFocusLeft="@id/list_selector" |
100 | 99 | android:nextFocusDown="@id/search_result_root" |
101 | 100 | android:paddingStart="-10dp" |
| 101 | + android:tag="tv_no_focus_tag" |
| 102 | + app:closeIcon="@drawable/ic_baseline_close_24" |
102 | 103 | app:iconifiedByDefault="false" |
103 | 104 | app:queryBackground="@color/transparent" |
104 | 105 | app:queryHint="@string/search_hint" |
105 | 106 | app:searchIcon="@drawable/search_icon" |
106 | | - app:closeIcon="@drawable/ic_baseline_close_24" |
107 | 107 | tools:ignore="RtlSymmetry"> |
108 | 108 |
|
109 | 109 | </androidx.appcompat.widget.SearchView> |
|
116 | 116 | android:layout_width="match_parent" |
117 | 117 | android:layout_height="40dp" |
118 | 118 | android:layout_gravity="top" |
119 | | - android:nextFocusDown="@id/search_result_root" |
120 | 119 | android:background="?attr/primaryGrayBackground" |
121 | | - android:paddingHorizontal="5dp" |
122 | 120 | android:focusable="true" |
| 121 | + android:nextFocusDown="@id/search_result_root" |
| 122 | + android:paddingHorizontal="5dp" |
123 | 123 | app:tabGravity="center" |
124 | 124 | app:tabIndicator="@drawable/indicator_background" |
125 | 125 | app:tabIndicatorColor="?attr/white" |
126 | 126 | app:tabIndicatorGravity="center" |
127 | 127 | app:tabIndicatorHeight="30dp" |
128 | 128 | app:tabMode="scrollable" |
| 129 | + app:tabRippleColor="?attr/textColor" |
129 | 130 | app:tabSelectedTextColor="?attr/primaryBlackBackground" |
130 | 131 | app:tabTextAppearance="@style/TabNoCaps" |
131 | 132 | app:tabTextColor="?attr/textColor" /> |
|
136 | 137 | android:layout_height="match_parent" |
137 | 138 | app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
138 | 139 |
|
139 | | - <androidx.viewpager2.widget.ViewPager2 |
140 | | - android:id="@+id/viewpager" |
141 | | - android:layout_width="match_parent" |
142 | | - android:layout_height="match_parent" |
143 | | - android:clipToPadding="false" |
144 | | - android:paddingBottom="40dp" |
145 | | - android:focusable="true" |
146 | | - android:tag="@string/tv_no_focus_tag" |
147 | | - tools:listitem="@layout/library_viewpager_page" /> |
| 140 | + <androidx.viewpager2.widget.ViewPager2 |
| 141 | + android:id="@+id/viewpager" |
| 142 | + android:layout_width="match_parent" |
| 143 | + android:layout_height="match_parent" |
| 144 | + android:clipToPadding="false" |
| 145 | + android:focusable="true" |
| 146 | + android:paddingBottom="40dp" |
| 147 | + android:tag="@string/tv_no_focus_tag" |
| 148 | + tools:listitem="@layout/library_viewpager_page" /> |
148 | 149 |
|
149 | 150 | <LinearLayout |
150 | 151 | android:id="@+id/library_loading_overlay" |
151 | 152 | android:layout_width="match_parent" |
152 | 153 | android:layout_height="match_parent" |
| 154 | + android:background="?attr/primaryBlackBackground" |
153 | 155 | android:focusable="false" |
154 | 156 | android:tag="@string/tv_no_focus_tag" |
155 | | - android:background="?attr/primaryBlackBackground" |
156 | 157 | android:visibility="gone" |
157 | 158 | tools:visibility="visible"> |
158 | 159 |
|
|
162 | 163 | android:layout_height="match_parent" |
163 | 164 | android:layout_gravity="center" |
164 | 165 | android:layout_margin="2dp" |
165 | | - app:shimmer_auto_start="true" |
166 | | - app:shimmer_base_alpha="0.2" |
167 | 166 | android:focusable="false" |
168 | 167 | android:tag="@string/tv_no_focus_tag" |
| 168 | + app:shimmer_auto_start="true" |
| 169 | + app:shimmer_base_alpha="0.2" |
169 | 170 | app:shimmer_duration="@integer/loading_time" |
170 | 171 | app:shimmer_highlight_alpha="0.3"> |
171 | 172 |
|
|
174 | 175 | android:layout_width="match_parent" |
175 | 176 | android:layout_height="match_parent" |
176 | 177 | android:clipToPadding="false" |
| 178 | + android:focusable="false" |
177 | 179 | android:gravity="center" |
178 | 180 | android:horizontalSpacing="10dp" |
179 | 181 | android:numColumns="3" |
180 | 182 | android:paddingBottom="120dp" |
181 | | - android:focusable="false" |
182 | 183 | android:tag="@string/tv_no_focus_tag" |
183 | 184 | android:verticalSpacing="10dp" |
184 | 185 | tools:listitem="@layout/loading_poster_dynamic" /> |
|
190 | 191 | android:layout_width="match_parent" |
191 | 192 | android:layout_height="match_parent" |
192 | 193 | android:layout_marginBottom="40dp"> |
| 194 | + |
193 | 195 | <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton |
194 | 196 | android:id="@+id/library_random" |
195 | 197 | style="@style/ExtendedFloatingActionButton" |
|
207 | 209 | android:text="@string/sort" |
208 | 210 | android:textColor="?attr/textColor" |
209 | 211 | android:visibility="gone" |
210 | | - tools:visibility="visible" |
211 | 212 | app:icon="@drawable/ic_baseline_sort_24" |
212 | | - tools:ignore="ContentDescription" /> |
| 213 | + tools:ignore="ContentDescription" |
| 214 | + tools:visibility="visible" /> |
213 | 215 | </FrameLayout> |
214 | 216 |
|
215 | 217 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments