mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Filters with flexible adapter
This commit is contained in:
		| @@ -0,0 +1,9 @@ | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|         android:width="24dp" | ||||
|         android:height="24dp" | ||||
|         android:viewportWidth="24.0" | ||||
|         android:viewportHeight="24.0"> | ||||
|     <path | ||||
|         android:fillColor="#FFFFFFFF" | ||||
|         android:pathData="M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z"/> | ||||
| </vector> | ||||
							
								
								
									
										9
									
								
								app/src/main/res/drawable/ic_expand_more_white_24dp.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/src/main/res/drawable/ic_expand_more_white_24dp.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|         android:width="24dp" | ||||
|         android:height="24dp" | ||||
|         android:viewportWidth="24.0" | ||||
|         android:viewportHeight="24.0"> | ||||
|     <path | ||||
|         android:fillColor="#FFFFFFFF" | ||||
|         android:pathData="M16.59,8.59L12,13.17 7.41,8.59 6,10l6,6 6,-6z"/> | ||||
| </vector> | ||||
| @@ -25,4 +25,8 @@ | ||||
|  | ||||
|     </LinearLayout> | ||||
|  | ||||
|     <FrameLayout | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent"/> | ||||
|  | ||||
| </LinearLayout> | ||||
							
								
								
									
										30
									
								
								app/src/main/res/layout/navigation_view_group.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/src/main/res/layout/navigation_view_group.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="?attr/listPreferredItemHeightSmall" | ||||
|     android:background="?colorPrimary" | ||||
|     android:orientation="horizontal" | ||||
|     android:gravity="center_vertical" | ||||
|     android:paddingLeft="?attr/listPreferredItemPaddingLeft" | ||||
|     android:paddingRight="?attr/listPreferredItemPaddingRight" | ||||
|     android:elevation="2dp"> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/title" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_weight="1" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:ellipsize="end" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="@style/TextAppearance.AppCompat.Body2" | ||||
|         android:textColor="@color/textColorPrimaryDark" | ||||
|         tools:text="Header"/> | ||||
|  | ||||
|     <ImageView | ||||
|         android:id="@+id/expand_icon" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content"/> | ||||
|  | ||||
| </LinearLayout> | ||||
							
								
								
									
										30
									
								
								app/src/main/res/layout/navigation_view_sort.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/src/main/res/layout/navigation_view_sort.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="?attr/listPreferredItemHeightSmall" | ||||
|     android:background="?colorPrimary" | ||||
|     android:orientation="horizontal" | ||||
|     android:gravity="center_vertical" | ||||
|     android:paddingLeft="?attr/listPreferredItemPaddingLeft" | ||||
|     android:paddingRight="?attr/listPreferredItemPaddingRight" | ||||
|     android:elevation="2dp"> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/title" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_weight="1" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:ellipsize="end" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="@style/TextAppearance.AppCompat.Body2" | ||||
|         android:textColor="@color/textColorPrimaryDark" | ||||
|         tools:text="Header"/> | ||||
|  | ||||
|     <ImageView | ||||
|         android:id="@+id/expand_icon" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content"/> | ||||
|  | ||||
| </LinearLayout> | ||||
							
								
								
									
										21
									
								
								app/src/main/res/layout/navigation_view_sort_item.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								app/src/main/res/layout/navigation_view_sort_item.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="?attr/listPreferredItemHeightSmall" | ||||
|     android:paddingLeft="?attr/listPreferredItemPaddingLeft" | ||||
|     android:paddingRight="?attr/listPreferredItemPaddingRight" | ||||
|     android:background="?attr/selectableItemBackground" | ||||
|     android:focusable="true"> | ||||
|  | ||||
|     <CheckedTextView | ||||
|         android:id="@+id/nav_view_item" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="match_parent" | ||||
|         android:layout_weight="1" | ||||
|         android:drawablePadding="@dimen/material_component_lists_icon_left_padding" | ||||
|         android:gravity="center_vertical|start" | ||||
|         android:maxLines="1" | ||||
|         android:textAppearance="@style/TextAppearance.AppCompat.Body2" /> | ||||
|  | ||||
| </LinearLayout> | ||||
		Reference in New Issue
	
	Block a user