mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Add favorited badge to browse and search (#5440)
This commit is contained in:
		| @@ -38,6 +38,32 @@ | ||||
|             tools:ignore="ContentDescription" | ||||
|             tools:src="@mipmap/ic_launcher" /> | ||||
|  | ||||
|         <LinearLayout | ||||
|             android:id="@+id/badges" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_marginStart="4dp" | ||||
|             android:layout_marginTop="4dp" | ||||
|             android:background="@drawable/rounded_rectangle"> | ||||
|  | ||||
|             <TextView | ||||
|                 android:id="@+id/favorite_text" | ||||
|                 style="@style/TextAppearance.Regular.Caption" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:background="?attr/colorSecondary" | ||||
|                 android:maxLines="1" | ||||
|                 android:paddingStart="3dp" | ||||
|                 android:paddingTop="1dp" | ||||
|                 android:paddingEnd="3dp" | ||||
|                 android:paddingBottom="1dp" | ||||
|                 android:text="@string/in_library" | ||||
|                 android:textColor="?attr/colorOnSecondary" | ||||
|                 android:visibility="gone" | ||||
|                 tools:visibility="visible" /> | ||||
|  | ||||
|         </LinearLayout> | ||||
|  | ||||
|     </FrameLayout> | ||||
|  | ||||
|     <TextView | ||||
|   | ||||
| @@ -84,6 +84,22 @@ | ||||
|                     tools:text="120" | ||||
|                     tools:visibility="visible" /> | ||||
|  | ||||
|                 <TextView | ||||
|                     android:id="@+id/favorite_text" | ||||
|                     style="@style/TextAppearance.Regular.Caption" | ||||
|                     android:layout_width="wrap_content" | ||||
|                     android:layout_height="wrap_content" | ||||
|                     android:background="?attr/colorSecondary" | ||||
|                     android:maxLines="1" | ||||
|                     android:paddingStart="3dp" | ||||
|                     android:paddingTop="1dp" | ||||
|                     android:paddingEnd="3dp" | ||||
|                     android:paddingBottom="1dp" | ||||
|                     android:text="@string/in_library" | ||||
|                     android:textColor="?attr/colorOnSecondary" | ||||
|                     android:visibility="gone" | ||||
|                     tools:visibility="visible" /> | ||||
|  | ||||
|             </LinearLayout> | ||||
|  | ||||
|             <com.google.android.material.progressindicator.CircularProgressIndicator | ||||
|   | ||||
| @@ -83,6 +83,22 @@ | ||||
|                 tools:text="120" | ||||
|                 tools:visibility="visible" /> | ||||
|  | ||||
|             <TextView | ||||
|                 android:id="@+id/favorite_text" | ||||
|                 style="@style/TextAppearance.Regular.Caption" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:background="?attr/colorSecondary" | ||||
|                 android:maxLines="1" | ||||
|                 android:paddingStart="3dp" | ||||
|                 android:paddingTop="1dp" | ||||
|                 android:paddingEnd="3dp" | ||||
|                 android:paddingBottom="1dp" | ||||
|                 android:text="@string/in_library" | ||||
|                 android:textColor="?attr/colorOnSecondary" | ||||
|                 android:visibility="gone" | ||||
|                 tools:visibility="visible" /> | ||||
|  | ||||
|         </LinearLayout> | ||||
|  | ||||
|         <TextView | ||||
|   | ||||
| @@ -97,6 +97,22 @@ | ||||
|             tools:text="130" | ||||
|             tools:visibility="visible" /> | ||||
|  | ||||
|         <TextView | ||||
|             android:id="@+id/favorite_text" | ||||
|             style="@style/TextAppearance.Regular.Caption" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:background="?attr/colorSecondary" | ||||
|             android:maxLines="1" | ||||
|             android:paddingStart="3dp" | ||||
|             android:paddingTop="1dp" | ||||
|             android:paddingEnd="3dp" | ||||
|             android:paddingBottom="1dp" | ||||
|             android:text="@string/in_library" | ||||
|             android:textColor="?attr/colorOnSecondary" | ||||
|             android:visibility="gone" | ||||
|             tools:visibility="visible" /> | ||||
|  | ||||
|     </LinearLayout> | ||||
|  | ||||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user