|
@@ -31,114 +31,9 @@
|
|
tools:ignore="ContentDescription"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
tools:src="@mipmap/ic_launcher" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
+ <include
|
|
android:id="@+id/badges"
|
|
android:id="@+id/badges"
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginStart="4dp"
|
|
|
|
- android:layout_marginTop="4dp"
|
|
|
|
- android:layout_marginEnd="4dp">
|
|
|
|
-
|
|
|
|
- <LinearLayout
|
|
|
|
- android:id="@+id/left_badges"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:background="@drawable/rounded_rectangle">
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/local_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:background="?attr/colorTertiary"
|
|
|
|
- android:paddingStart="3dp"
|
|
|
|
- android:paddingTop="1dp"
|
|
|
|
- android:maxLines="1"
|
|
|
|
- android:paddingEnd="3dp"
|
|
|
|
- android:paddingBottom="1dp"
|
|
|
|
- android:text="@string/local_source_badge"
|
|
|
|
- android:textAppearance="?attr/textAppearanceCaption"
|
|
|
|
- android:textColor="?attr/colorOnTertiary"
|
|
|
|
- android:visibility="gone"
|
|
|
|
- tools:visibility="visible" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/download_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:background="?attr/colorTertiary"
|
|
|
|
- android:paddingStart="3dp"
|
|
|
|
- android:paddingTop="1dp"
|
|
|
|
- android:maxLines="1"
|
|
|
|
- android:paddingEnd="3dp"
|
|
|
|
- android:paddingBottom="1dp"
|
|
|
|
- android:textAppearance="?attr/textAppearanceCaption"
|
|
|
|
- android:textColor="?attr/colorOnTertiary"
|
|
|
|
- android:visibility="gone"
|
|
|
|
- tools:text="120"
|
|
|
|
- tools:visibility="visible" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/unread_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:background="?attr/colorSecondary"
|
|
|
|
- android:paddingStart="3dp"
|
|
|
|
- android:paddingTop="1dp"
|
|
|
|
- android:paddingEnd="3dp"
|
|
|
|
- android:maxLines="1"
|
|
|
|
- android:paddingBottom="1dp"
|
|
|
|
- android:textAppearance="?attr/textAppearanceCaption"
|
|
|
|
- android:textColor="?attr/colorOnSecondary"
|
|
|
|
- android:visibility="gone"
|
|
|
|
- tools:text="120"
|
|
|
|
- tools:visibility="visible" />
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/favorite_text"
|
|
|
|
- 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:textAppearance="?attr/textAppearanceCaption"
|
|
|
|
- android:textColor="?attr/colorOnSecondary"
|
|
|
|
- android:visibility="gone"
|
|
|
|
- tools:visibility="visible" />
|
|
|
|
- </LinearLayout>
|
|
|
|
-
|
|
|
|
- <View
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
- android:layout_weight="1" />
|
|
|
|
-
|
|
|
|
- <LinearLayout
|
|
|
|
- android:id="@+id/right_badges"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:background="@drawable/rounded_rectangle">
|
|
|
|
-
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/language_text"
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:background="?attr/colorTertiary"
|
|
|
|
- android:maxLines="1"
|
|
|
|
- android:paddingStart="3dp"
|
|
|
|
- android:paddingTop="1dp"
|
|
|
|
- android:paddingEnd="3dp"
|
|
|
|
- android:paddingBottom="1dp"
|
|
|
|
- tools:text="EN"
|
|
|
|
- android:textAppearance="?attr/textAppearanceCaption"
|
|
|
|
- android:textColor="?attr/colorOnTertiary"
|
|
|
|
- android:visibility="gone"
|
|
|
|
- tools:visibility="visible" />
|
|
|
|
- </LinearLayout>
|
|
|
|
- </LinearLayout>
|
|
|
|
-
|
|
|
|
|
|
+ layout="@layout/source_grid_item_badges" />
|
|
|
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
android:id="@+id/progress"
|
|
android:id="@+id/progress"
|