mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Global Search (#849)
* Global Search * Cards are now independent of design by use of recycler. * Added local * Some attribute fixes + moved onclick to controller. * Lots of improvements to code * Reversed some stuff. Thanks API 16 * Code fixes * Performance improvements * Moved adapter creation to constructor * Small changes * Removed sources settings from settings menu. Added OnChangeListener in catalogue. Made setting icon visible if room. * bug fix * Code review part uno * Code review part uno-2 * Single recycler approach * Add last source used * Fix scroll state and some layout issues * Fix wrong item binding * Use data class for items * Calculate item position and count while binding * Fix background color with slices * Reuse slices. Fix card background. Flatten constraint layout * Fix global_search scroll issue * Store last state with global search * Minor changes * Remove catalogue toolbar spinner. Persist catalogue across process restarts * Save view state of recycler views. Set toolbar title with current query
This commit is contained in:
		
				
					committed by
					
						 inorichi
						inorichi
					
				
			
			
				
	
			
			
			
						parent
						
							56bde40035
						
					
				
				
					commit
					54c8b3ef29
				
			
							
								
								
									
										16
									
								
								app/src/main/res/menu/catalogue_main.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								app/src/main/res/menu/catalogue_main.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" tools:context=".CatalogueListActivity"> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_search" | ||||
|         android:title="@string/action_search" | ||||
|         android:icon="@drawable/ic_search_white_24dp" | ||||
|         app:showAsAction="collapseActionView|ifRoom" | ||||
|         app:actionViewClass="android.support.v7.widget.SearchView"/> | ||||
|  | ||||
|     <item android:id="@+id/action_settings" | ||||
|         android:title="@string/pref_category_sources" | ||||
|         android:icon="@drawable/ic_settings_white_24dp" | ||||
|         app:showAsAction="ifRoom"/> | ||||
| </menu> | ||||
							
								
								
									
										11
									
								
								app/src/main/res/menu/catalogue_new_list.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								app/src/main/res/menu/catalogue_new_list.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" tools:context=".CatalogueListActivity"> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_search" | ||||
|         android:title="@string/action_search" | ||||
|         android:icon="@drawable/ic_search_white_24dp" | ||||
|         app:showAsAction="collapseActionView|ifRoom" | ||||
|         app:actionViewClass="android.support.v7.widget.SearchView"/> | ||||
| </menu> | ||||
		Reference in New Issue
	
	Block a user