mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	UI with Conductor (#784)
This commit is contained in:
		| @@ -2,27 +2,17 @@ | ||||
| <android.support.design.widget.CoordinatorLayout | ||||
|     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" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:gravity="center" | ||||
|     android:fitsSystemWindows="true"> | ||||
|  | ||||
|     <include layout="@layout/toolbar"/> | ||||
|  | ||||
|     <android.support.v7.widget.RecyclerView | ||||
|     <com.bluelinelabs.conductor.ChangeHandlerFrameLayout | ||||
|         android:id="@+id/controller_container" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_marginTop="?attr/actionBarSize" | ||||
|         android:id="@+id/recycler" | ||||
|         android:choiceMode="multipleChoice" | ||||
|         tools:listitem="@layout/item_edit_categories" | ||||
|     /> | ||||
|  | ||||
|     <android.support.design.widget.FloatingActionButton | ||||
|         android:id="@+id/fab" | ||||
|         app:layout_anchor="@id/recycler" | ||||
|         app:srcCompat="@drawable/ic_add_white_24dp" | ||||
|         style="@style/Theme.Widget.FAB"/> | ||||
|         app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||||
|         /> | ||||
|  | ||||
| </android.support.design.widget.CoordinatorLayout> | ||||
| @@ -7,7 +7,8 @@ | ||||
|     android:layout_height="match_parent" | ||||
|     android:fitsSystemWindows="true"> | ||||
|  | ||||
|     <RelativeLayout | ||||
|     <LinearLayout | ||||
|         android:orientation="vertical" | ||||
|         android:id="@+id/main_content" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent"> | ||||
| @@ -32,22 +33,12 @@ | ||||
|  | ||||
|         </eu.kanade.tachiyomi.widget.ElevationAppBarLayout> | ||||
|  | ||||
|  | ||||
|         <FrameLayout | ||||
|             android:id="@+id/frame_container" | ||||
|         <com.bluelinelabs.conductor.ChangeHandlerFrameLayout | ||||
|             android:id="@+id/controller_container" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent" | ||||
|             android:layout_below="@id/appbar"> | ||||
|             android:layout_height="match_parent" /> | ||||
|  | ||||
|             <eu.kanade.tachiyomi.widget.EmptyView | ||||
|                 android:id="@+id/empty_view" | ||||
|                 android:visibility="gone" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_gravity="center" | ||||
|                 android:layout_height="wrap_content"/> | ||||
|  | ||||
|         </FrameLayout> | ||||
|     </RelativeLayout> | ||||
|     </LinearLayout> | ||||
|  | ||||
|     <android.support.design.widget.NavigationView | ||||
|         android:id="@+id/nav_view" | ||||
| @@ -58,4 +49,5 @@ | ||||
|         android:theme="?attr/navigation_view_theme" | ||||
|         app:headerLayout="@layout/navigation_header" | ||||
|         app:menu="@menu/menu_navigation"/> | ||||
|  | ||||
| </android.support.v4.widget.DrawerLayout> | ||||
|   | ||||
							
								
								
									
										22
									
								
								app/src/main/res/layout/categories_controller.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								app/src/main/res/layout/categories_controller.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|              xmlns:tools="http://schemas.android.com/tools" | ||||
|              xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|              android:layout_width="match_parent" | ||||
|              android:layout_height="match_parent"> | ||||
|  | ||||
|     <android.support.v7.widget.RecyclerView | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:id="@+id/recycler" | ||||
|         android:choiceMode="multipleChoice" | ||||
|         tools:listitem="@layout/item_edit_categories" | ||||
|         /> | ||||
|  | ||||
|     <android.support.design.widget.FloatingActionButton | ||||
|         android:id="@+id/fab" | ||||
|         app:layout_anchor="@id/recycler" | ||||
|         app:srcCompat="@drawable/ic_add_white_24dp" | ||||
|         style="@style/Theme.Widget.FAB"/> | ||||
|  | ||||
| </FrameLayout> | ||||
| @@ -11,7 +11,7 @@ | ||||
|           android:fitsSystemWindows="true" | ||||
|           android:orientation="vertical" | ||||
|           android:id="@+id/catalogue_view" | ||||
|           tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueFragment"> | ||||
|           tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueController"> | ||||
|  | ||||
|         <ProgressBar | ||||
|             android:id="@+id/progress" | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|     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="eu.kanade.tachiyomi.ui.catalogue.CatalogueFragment" | ||||
|     tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueController" | ||||
|     android:id="@id/swipe_refresh" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent"> | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
|  | ||||
| <android.support.v4.widget.SwipeRefreshLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
| @@ -18,6 +17,13 @@ | ||||
|             android:descendantFocusability="blocksDescendants" | ||||
|             tools:listitem="@layout/item_recent_chapters"/> | ||||
|  | ||||
|         <eu.kanade.tachiyomi.widget.EmptyView | ||||
|             android:id="@+id/empty_view" | ||||
|             android:visibility="gone" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_gravity="center" | ||||
|             android:layout_height="wrap_content"/> | ||||
|  | ||||
|     </FrameLayout> | ||||
|  | ||||
| </android.support.v4.widget.SwipeRefreshLayout> | ||||
| @@ -1,5 +1,5 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|                 xmlns:tools="http://schemas.android.com/tools" | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="match_parent" | ||||
| @@ -13,4 +13,11 @@ | ||||
|  | ||||
|     </android.support.v7.widget.RecyclerView> | ||||
|  | ||||
| </RelativeLayout> | ||||
|     <eu.kanade.tachiyomi.widget.EmptyView | ||||
|         android:id="@+id/empty_view" | ||||
|         android:visibility="gone" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_gravity="center" | ||||
|         android:layout_height="wrap_content"/> | ||||
|  | ||||
| </FrameLayout> | ||||
| @@ -11,7 +11,7 @@ | ||||
|         android:orientation="vertical"> | ||||
|  | ||||
|         <android.support.v7.widget.RecyclerView | ||||
|             android:id="@+id/recycler" | ||||
|             android:id="@+id/track_recycler" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent"/> | ||||
|  | ||||
|   | ||||
							
								
								
									
										14
									
								
								app/src/main/res/layout/item_library_category2.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								app/src/main/res/layout/item_library_category2.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <eu.kanade.tachiyomi.ui.library.LibraryCategoryView | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent"> | ||||
|  | ||||
|     <android.support.v4.widget.SwipeRefreshLayout | ||||
|         android:id="@+id/swipe_refresh" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent"> | ||||
|  | ||||
|     </android.support.v4.widget.SwipeRefreshLayout> | ||||
|  | ||||
| </eu.kanade.tachiyomi.ui.library.LibraryCategoryView> | ||||
							
								
								
									
										20
									
								
								app/src/main/res/layout/library_controller.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								app/src/main/res/layout/library_controller.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <FrameLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent"> | ||||
|  | ||||
|     <android.support.v4.view.ViewPager | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:id="@+id/view_pager"/> | ||||
|  | ||||
|     <eu.kanade.tachiyomi.widget.EmptyView | ||||
|         android:id="@+id/empty_view" | ||||
|         android:visibility="gone" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_gravity="center" | ||||
|         android:layout_height="wrap_content"/> | ||||
|  | ||||
| </FrameLayout> | ||||
							
								
								
									
										6
									
								
								app/src/main/res/layout/manga_controller.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								app/src/main/res/layout/manga_controller.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <android.support.v4.view.ViewPager | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:id="@+id/view_pager" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" /> | ||||
		Reference in New Issue
	
	Block a user