Allow to display manga from catalogue as a simple list (#35)
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-hdpi/ic_view_list_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 125 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-hdpi/ic_view_module_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 115 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-ldpi/ic_view_list_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 187 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-ldpi/ic_view_module_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 278 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-mdpi/ic_view_list_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 89 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-mdpi/ic_view_module_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 87 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xhdpi/ic_view_list_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 117 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xhdpi/ic_view_module_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 115 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxhdpi/ic_view_list_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 144 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxhdpi/ic_view_module_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 139 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxxhdpi/ic_view_list_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 176 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxxhdpi/ic_view_module_white_24dp.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 171 B | 
| @@ -11,17 +11,28 @@ | ||||
|         android:id="@+id/progress" | ||||
|         style="?android:attr/progressBarStyleLarge" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="fill_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_gravity="center_vertical|center_horizontal" | ||||
|         android:visibility="gone"/> | ||||
|  | ||||
|     <eu.kanade.tachiyomi.widget.AutofitRecyclerView | ||||
|         android:id="@+id/recycler" | ||||
|         style="@style/AppTheme.GridView" | ||||
|     <ViewSwitcher | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="0dp" | ||||
|         android:layout_weight="1" | ||||
|         android:columnWidth="140dp" | ||||
|         tools:listitem="@layout/item_catalogue" /> | ||||
|         android:id="@+id/switcher"> | ||||
|  | ||||
|         <eu.kanade.tachiyomi.widget.AutofitRecyclerView | ||||
|             android:id="@+id/catalogue_grid" | ||||
|             style="@style/AppTheme.GridView" | ||||
|             android:columnWidth="140dp" | ||||
|             tools:listitem="@layout/item_catalogue_grid" /> | ||||
|  | ||||
|         <android.support.v7.widget.RecyclerView | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent" | ||||
|             android:id="@+id/catalogue_list"/> | ||||
|  | ||||
|     </ViewSwitcher> | ||||
|  | ||||
|     <ProgressBar | ||||
|         android:id="@+id/progress_grid" | ||||
|   | ||||
| @@ -8,6 +8,6 @@ | ||||
|         android:id="@+id/library_mangas" | ||||
|         style="@style/AppTheme.GridView" | ||||
|         android:columnWidth="140dp" | ||||
|         tools:listitem="@layout/item_catalogue" /> | ||||
|         tools:listitem="@layout/item_catalogue_grid" /> | ||||
|  | ||||
| </FrameLayout> | ||||
							
								
								
									
										16
									
								
								app/src/main/res/layout/item_catalogue_list.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,16 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <FrameLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="?android:listPreferredItemHeightSmall" | ||||
|     android:background="@drawable/selector_chapter_light"> | ||||
|  | ||||
|     <TextView | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_gravity="center_vertical" | ||||
|         android:paddingLeft="?android:listPreferredItemPaddingLeft" | ||||
|         android:paddingRight="?android:listPreferredItemPaddingLeft" | ||||
|         android:id="@+id/title"/> | ||||
|  | ||||
| </FrameLayout> | ||||
| @@ -1,11 +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_action_search" | ||||
|         android:orderInCategory="100" | ||||
|         app:showAsAction="collapseActionView|ifRoom" | ||||
|         app:actionViewClass="android.support.v7.widget.SearchView"/> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_display_mode" | ||||
|         android:title="@string/action_display_mode" | ||||
|         app:showAsAction="ifRoom"/> | ||||
| </menu> | ||||
|   | ||||
| @@ -35,4 +35,6 @@ | ||||
|  | ||||
|     <string name="pref_version">pref_version</string> | ||||
|     <string name="pref_build_time">pref_build_time</string> | ||||
|  | ||||
|     <string name="pref_display_catalogue_as_list">pref_display_catalogue_as_list</string> | ||||
| </resources> | ||||
| @@ -38,6 +38,7 @@ | ||||
|     <string name="action_previous_chapter">Previous chapter</string> | ||||
|     <string name="action_next_chapter">Next chapter</string> | ||||
|     <string name="action_retry">Retry</string> | ||||
|     <string name="action_display_mode">Change display mode</string> | ||||
|  | ||||
|  | ||||
|     <!-- Buttons --> | ||||
|   | ||||