chore: code cleanup

This commit is contained in:
rebelonion 2024-04-19 06:03:40 -05:00
parent 386e02a564
commit 24147e746a
198 changed files with 1367 additions and 965 deletions

View file

@ -57,11 +57,11 @@
android:id="@+id/characterTitle"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_marginStart="24dp"
android:layout_weight="1"
android:ellipsize="marquee"
android:focusable="true"
android:layout_marginStart="24dp"
android:focusableInTouchMode="true"
android:fontFamily="@font/poppins_bold"
android:gravity="center_vertical"

View file

@ -86,17 +86,16 @@
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:layout_weight="1"
android:visibility="gone">
</FrameLayout>
android:visibility="gone"></FrameLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/searchView"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_gravity="bottom"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_gravity="bottom"
android:transitionName="@string/search"
app:boxBackgroundColor="@color/bg"
app:boxBackgroundMode="outline"
@ -106,22 +105,23 @@
app:boxCornerRadiusTopStart="28dp"
app:endIconDrawable="@drawable/ic_round_search_24"
app:hintAnimationEnabled="true">
<AutoCompleteTextView
android:id="@+id/searchViewText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="bottom"
android:layout_marginBottom="8dp"
android:paddingBottom="4dp"
android:fontFamily="@font/poppins_bold"
android:imeOptions="actionSearch"
android:inputType="textPersonName"
android:hint="@string/search"
android:padding="8dp"
android:selectAllOnFocus="true"
android:textSize="14sp"
tools:ignore="LabelFor,TextContrastCheck" />
<AutoCompleteTextView
android:id="@+id/searchViewText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="8dp"
android:layout_weight="1"
android:fontFamily="@font/poppins_bold"
android:hint="@string/search"
android:imeOptions="actionSearch"
android:inputType="textPersonName"
android:padding="8dp"
android:paddingBottom="4dp"
android:selectAllOnFocus="true"
android:textSize="14sp"
tools:ignore="LabelFor,TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>

View file

@ -112,8 +112,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="true"
tools:listitem="@layout/item_follower"
android:requiresFadingEdge="vertical" />
android:requiresFadingEdge="vertical"
tools:listitem="@layout/item_follower" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View file

@ -62,8 +62,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:orientation="horizontal">

View file

@ -51,9 +51,9 @@
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:padding="24dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="20dp"
android:padding="24dp"
app:srcCompat="@drawable/ic_extension"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription" />

View file

@ -44,8 +44,8 @@
android:layout_height="wrap_content"
android:layout_margin="32dp"
android:layout_weight="1"
android:text="@string/notifications"
android:fontFamily="@font/poppins_bold"
android:text="@string/notifications"
android:textSize="28sp" />
<ImageView

View file

@ -64,8 +64,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:orientation="horizontal">
@ -138,8 +138,8 @@
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginHorizontal="16dp"
android:layout_marginBottom="8dp"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"

View file

@ -5,9 +5,9 @@
<com.github.aachartmodel.aainfographics.aachartcreator.AAChartView
android:id="@+id/chartView"
android:layout_margin="5dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:background="?android:colorBackground" />

View file

@ -2,9 +2,9 @@
<androidx.core.widget.NestedScrollView 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@drawable/bottom_sheet_background">
<LinearLayout
android:layout_width="match_parent"

View file

@ -2,9 +2,9 @@
<androidx.core.widget.NestedScrollView 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@drawable/bottom_sheet_background">
<LinearLayout
android:layout_width="match_parent"

View file

@ -2,9 +2,9 @@
<androidx.core.widget.NestedScrollView 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@drawable/bottom_sheet_background">
<LinearLayout
android:layout_width="match_parent"

View file

@ -2,9 +2,9 @@
<androidx.core.widget.NestedScrollView 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bottom_sheet_background"
android:fillViewport="true">
<LinearLayout

View file

@ -2,9 +2,9 @@
<LinearLayout 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background"
android:orientation="vertical">
<androidx.cardview.widget.CardView

View file

@ -30,8 +30,8 @@
android:textAlignment="center"
android:textSize="20sp"
android:textStyle="bold" />
<com.google.android.material.materialswitch.MaterialSwitch
android:padding="16dp"
android:id="@+id/showIcon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -41,6 +41,7 @@
android:elegantTextHeight="true"
android:fontFamily="@font/poppins_bold"
android:minHeight="64dp"
android:padding="16dp"
android:text="@string/use_anilist_icon"
android:textAlignment="viewStart"
android:textColor="?attr/colorOnBackground"
@ -48,6 +49,7 @@
app:drawableTint="?attr/colorPrimary"
app:showText="false"
app:thumbTint="@color/button_switch_track" />
<RadioGroup
android:id="@+id/radio_group"
android:layout_width="match_parent"
@ -98,15 +100,15 @@
app:drawableTint="?attr/colorPrimary" />
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/dantotsu"
android:textColor="?attr/colorPrimary"
app:drawableTint="?attr/colorPrimary" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/dantotsu"
android:textColor="?attr/colorPrimary"
app:drawableTint="?attr/colorPrimary" />
</LinearLayout>
<RadioButton
@ -145,16 +147,16 @@
app:drawableTint="?attr/colorPrimary" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/anilistLinkPreview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/anilist_link"
android:textColor="?attr/colorPrimary"
app:drawableTint="?attr/colorPrimary" />
<TextView
android:id="@+id/anilistLinkPreview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:fontFamily="@font/poppins_bold"
android:text="@string/anilist_link"
android:textColor="?attr/colorPrimary"
app:drawableTint="?attr/colorPrimary" />
</LinearLayout>
</RadioGroup>
</LinearLayout>

View file

@ -2,9 +2,9 @@
<FrameLayout 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background"
android:orientation="vertical">
<LinearLayout

View file

@ -2,10 +2,10 @@
<androidx.core.widget.NestedScrollView 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:background="@drawable/bottom_sheet_background"
android:id="@+id/mediaListContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background">
<FrameLayout
android:layout_width="match_parent"

View file

@ -3,9 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mediaListContainer"
android:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background">
<ProgressBar
android:id="@+id/mediaListProgressBar"

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout 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"
@ -32,8 +31,8 @@
android:layout_gravity="start|center_vertical"
android:layout_marginStart="17dp"
android:background="@null"
android:scaleType="fitCenter"
android:rotation="180"
android:scaleType="fitCenter"
android:src="@drawable/ic_round_reset_star_24"
app:tint="?attr/colorPrimary" />
@ -182,8 +181,8 @@
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:id="@+id/searchSeasonCont"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
@ -264,14 +263,14 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/poppins_semi_bold"
android:layout_marginEnd="10dp"
android:fontFamily="@font/poppins_semi_bold"
android:text="@string/grid" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/searchGenresGrid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
@ -307,14 +306,14 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/poppins_semi_bold"
android:layout_marginEnd="10dp"
android:fontFamily="@font/poppins_semi_bold"
android:text="@string/grid" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/searchTagsGrid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView

View file

@ -3,9 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mediaListContainer"
android:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background">
<ProgressBar
android:id="@+id/mediaListProgressBar"

View file

@ -2,9 +2,9 @@
<LinearLayout 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:background="@drawable/bottom_sheet_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bottom_sheet_background"
android:orientation="vertical">
<androidx.cardview.widget.CardView

View file

@ -10,10 +10,10 @@
android:id="@+id/dialogEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:maxLines="1"
android:maxLength="4"
android:autofillHints="e.g. 1"
android:inputType="number"
android:maxLength="4"
android:maxLines="1"
tools:ignore="LabelFor" />
</LinearLayout>

View file

@ -16,11 +16,11 @@
android:id="@+id/repositoryTextBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionDone"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
android:imeOptions="actionDone"
app:hintAnimationEnabled="true" />
</LinearLayout>

View file

@ -21,11 +21,11 @@
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:hint="@string/user_agent"
android:imeOptions="actionDone"
app:boxCornerRadiusBottomEnd="8dp"
app:boxCornerRadiusBottomStart="8dp"
app:boxCornerRadiusTopEnd="8dp"
app:boxCornerRadiusTopStart="8dp"
android:imeOptions="actionDone"
app:hintAnimationEnabled="true" />
</LinearLayout>

View file

@ -132,9 +132,9 @@
android:layout_width="48dp"
android:layout_height="48dp"
android:backgroundTint="#00FFFFFF"
android:visibility="gone"
android:scaleX="-1"
android:src="@drawable/ic_round_subtitles_24"
android:visibility="gone"
app:tint="#fff"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
@ -143,8 +143,8 @@
android:layout_width="48dp"
android:layout_height="48dp"
android:backgroundTint="#00FFFFFF"
android:visibility="gone"
android:src="@drawable/ic_round_audiotrack_24"
android:visibility="gone"
app:tint="#fff"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
@ -168,9 +168,9 @@
android:layout_height="48dp"
android:backgroundTint="#00FFFFFF"
android:visibility="gone"
app:mediaRouteButtonTint="#fff"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:mediaRouteButtonTint="#fff"
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
<ImageButton

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView 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:id="@+id/commentsLayout"
@ -56,7 +55,7 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginTop="64dp"
tools:visibility="gone"/>
tools:visibility="gone" />
<FrameLayout
android:id="@+id/commentsListContainer"

View file

@ -89,23 +89,23 @@
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="8dp"
android:gravity="center">
<TextView
android:id="@+id/importSettingsButton"
android:clickable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/restore_settings_underline"
android:textSize="11sp"
android:textColor="?attr/colorOutline"
android:fontFamily="@font/poppins_bold"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:padding="8dp">
<TextView
android:id="@+id/importSettingsButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:fontFamily="@font/poppins_bold"
android:text="@string/restore_settings_underline"
android:textColor="?attr/colorOutline"
android:textSize="11sp" />
</LinearLayout>

View file

@ -297,6 +297,7 @@
android:fontFamily="@font/poppins_bold"
android:textAlignment="textEnd" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="24dp"
@ -317,26 +318,28 @@
android:fontFamily="@font/poppins_bold"
android:textAlignment="textEnd" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="24dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.58"
android:text="@string/favourites"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.58"
android:text="@string/favourites"
android:textStyle="bold" />
<TextView
android:id="@+id/mediaInfoFavorites"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/poppins_bold"
android:textAlignment="textEnd" />
</TableRow>
<TextView
android:id="@+id/mediaInfoFavorites"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/poppins_bold"
android:textAlignment="textEnd" />
</TableRow>
<View
android:layout_width="match_parent"
android:layout_height="16dp" />

View file

@ -82,46 +82,46 @@
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingRight="32dp"
android:paddingLeft="32dp">
android:paddingLeft="32dp"
android:paddingRight="32dp">
<TextView
android:id="@+id/total"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:fontFamily="@font/poppins_bold"
android:gravity="center_vertical"
android:hint="Type"
android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" />
<TextView
android:id="@+id/total"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:fontFamily="@font/poppins_bold"
android:gravity="center_vertical"
android:hint="Type"
android:textSize="14sp"
tools:ignore="HardcodedText,RtlSymmetry" />
<ImageView
android:id="@+id/downloadedList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:alpha="0.33"
android:padding="8dp"
app:srcCompat="@drawable/ic_round_view_list_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,ImageContrastCheck" />
<ImageView
android:id="@+id/downloadedList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:alpha="0.33"
android:padding="8dp"
app:srcCompat="@drawable/ic_round_view_list_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,ImageContrastCheck" />
<ImageView
android:id="@+id/downloadedGrid"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="end"
android:alpha="0.33"
android:padding="8dp"
app:srcCompat="@drawable/ic_round_grid_view_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,ImageContrastCheck" />
<ImageView
android:id="@+id/downloadedGrid"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="end"
android:alpha="0.33"
android:padding="8dp"
app:srcCompat="@drawable/ic_round_grid_view_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,ImageContrastCheck" />
</LinearLayout>
<!-- This TextView might overlap with GridView if GridView has items -->

View file

@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:scrollbars="none"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"

View file

@ -14,9 +14,9 @@
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="vertical"
android:paddingBottom="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp">
android:paddingEnd="16dp"
android:paddingBottom="16dp">
<LinearLayout
android:layout_width="match_parent"
@ -95,16 +95,16 @@
android:id="@+id/compare"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="true"
android:fontFamily="@font/poppins_bold"
android:textColor="?attr/colorPrimary"
android:layout_gravity="center_horizontal"
android:paddingTop="4dp"
android:enabled="true"
android:focusable="true"
android:fontFamily="@font/poppins_bold"
android:insetTop="0dp"
android:insetBottom="0dp"
android:paddingTop="4dp"
android:text="@string/compare"
android:textSize="12sp"
android:focusable="true" />
android:textColor="?attr/colorPrimary"
android:textSize="12sp" />
</LinearLayout>
@ -125,7 +125,7 @@
android:id="@+id/statisticList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:nestedScrollingEnabled="true"
android:orientation="vertical"
tools:listitem="@layout/item_chart" />
</LinearLayout>

View file

@ -150,8 +150,8 @@
android:layout_height="160dp"
android:layout_gravity="center"
android:scaleType="centerCrop"
tools:srcCompat="@tools:sample/backgrounds/scenic"
tools:ignore="ContentDescription,ImageContrastCheck"
tools:srcCompat="@tools:sample/backgrounds/scenic"
tools:tint="@color/transparent" />
</com.google.android.material.card.MaterialCardView>

View file

@ -4,8 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:background="?attr/colorSurface"
android:orientation="vertical">

View file

@ -35,7 +35,7 @@
app:icon="@drawable/ic_round_play_circle_24"
app:iconTint="@color/bg_white"
tools:ignore="TextContrastCheck"
tools:visibility="visible"/>
tools:visibility="visible" />
<TextView
android:id="@+id/animeSourceTitle"
@ -161,11 +161,11 @@
android:layout_height="wrap_content"
android:checked="false"
android:padding="12dp"
android:scaleX="0.80"
android:scaleY="0.80"
app:cornerRadius="0dp"
app:showText="false"
android:scaleX="0.80"
android:scaleY="0.80"
app:useMaterialThemeColors="true"/>
app:useMaterialThemeColors="true" />
<TextView
android:id="@+id/animeSourceDubbedText"
@ -180,8 +180,8 @@
android:paddingStart="5dp"
android:singleLine="true"
android:textSize="14sp"
tools:text="Dubbed"
tools:ignore="RtlSymmetry" />
tools:ignore="RtlSymmetry"
tools:text="Dubbed" />
</LinearLayout>
@ -343,36 +343,36 @@
android:layout_marginBottom="8dp"
tools:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<TextView
android:id="@+id/animeSourceNotFound"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/poppins_bold"
android:padding="32dp"
android:text="@string/source_not_found"
android:textAlignment="center"
android:textSize="16sp"
android:visibility="gone"/>
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<Button
android:id="@+id/faqbutton"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_marginBottom="16dp"
android:backgroundTint="?attr/colorPrimaryContainer"
android:visibility="gone"
android:text="@string/faq"
android:textColor="?attr/colorOnPrimaryContainer"
android:fontFamily="@font/poppins_bold"
app:cornerRadius="12dp"
app:icon="@drawable/ic_round_help_outline"
app:iconTint="?attr/colorOnPrimaryContainer" />
<TextView
android:id="@+id/animeSourceNotFound"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/poppins_bold"
android:padding="32dp"
android:text="@string/source_not_found"
android:textAlignment="center"
android:textSize="16sp"
android:visibility="gone" />
<Button
android:id="@+id/faqbutton"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_marginBottom="16dp"
android:backgroundTint="?attr/colorPrimaryContainer"
android:fontFamily="@font/poppins_bold"
android:text="@string/faq"
android:textColor="?attr/colorOnPrimaryContainer"
android:visibility="gone"
app:cornerRadius="12dp"
app:icon="@drawable/ic_round_help_outline"
app:iconTint="?attr/colorOnPrimaryContainer" />
</LinearLayout>

View file

@ -42,7 +42,7 @@
android:background="?android:attr/selectableItemBackground"
app:srcCompat="@drawable/ic_round_remove_red_eye_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<ImageButton
android:id="@+id/itemDownload"
@ -52,19 +52,20 @@
android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_download_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
</LinearLayout>
<LinearLayout
android:id="@+id/itemChapterDateLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:layout_marginTop="-20dp"
android:layout_marginBottom="10dp"
android:layout_marginEnd="100dp"
android:visibility="gone"
android:layout_marginBottom="10dp"
android:orientation="horizontal"
android:visibility="gone"
tools:visibility="visible">
<TextView
@ -77,9 +78,9 @@
android:fontFamily="@font/poppins_bold"
android:maxLines="1"
android:textSize="12dp"
tools:ignore="SpUsage"
tools:text="Aug/12/1969"
tools:visibility="visible"
tools:ignore="SpUsage" />
tools:visibility="visible" />
<TextView
android:id="@+id/itemChapterDateDivider"
@ -101,9 +102,9 @@
android:fontFamily="@font/poppins_bold"
android:maxLines="1"
android:textSize="12dp"
tools:ignore="SpUsage"
tools:text="Manga"
tools:visibility="visible"
tools:ignore="SpUsage" />
tools:visibility="visible" />
</LinearLayout>
<TextView

View file

@ -22,9 +22,10 @@
android:layout_marginEnd="32dp"
android:layout_marginBottom="32dp"
android:alpha="0.58"
tools:maxLines="10"
tools:ignore="TextContrastCheck"
tools:maxLines="10"
tools:text="@tools:sample/lorem/random" />
<LinearLayout
android:id="@+id/voiceActorContainer"
android:layout_width="match_parent"
@ -57,6 +58,7 @@
tools:orientation="horizontal" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/chartLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/chartLayout"
android:orientation="vertical">
<FrameLayout

View file

@ -195,24 +195,25 @@
android:id="@+id/commentTotalReplies"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:layout_marginStart="4dp"
android:alpha="0.6"
android:fontFamily="@font/poppins_semi_bold"
android:gravity="center"
android:text="View replies"
android:textSize="12sp"
tools:ignore="HardcodedText" />
<Space
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
android:layout_weight="1" />
<ImageView
android:id="@+id/commentInfo"
android:layout_width="24dp"
android:layout_height="24dp"
android:alpha="0.6"
android:layout_marginEnd="16dp"
android:alpha="0.6"
app:srcCompat="@drawable/ic_round_dots_vertical_24"
tools:ignore="ContentDescription" />
@ -235,13 +236,14 @@
android:layout_height="match_parent"
android:layout_marginStart="12dp"
android:alpha="0.6"
android:gravity="center"
android:fontFamily="@font/poppins_semi_bold"
android:gravity="center"
android:text="Edit"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@+id/commentReply"
app:layout_constraintStart_toEndOf="@+id/commentReply"
tools:ignore="HardcodedText" />
<ImageView
android:id="@+id/commentUpVote"
android:layout_width="24dp"
@ -294,8 +296,6 @@
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/commentRepliesList"
android:layout_width="match_parent"

View file

@ -18,7 +18,7 @@
android:layout_marginStart="-10dp"
android:layout_marginEnd="3dp"
android:src="@drawable/ic_round_equal_24"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<ImageView
android:id="@+id/extensionIconImageView"
@ -26,7 +26,7 @@
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="3dp"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="245dp"
@ -61,7 +61,7 @@
android:layout_weight="0"
android:src="@drawable/ic_round_delete_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<ImageView
android:id="@+id/settingsImageView"
@ -72,6 +72,6 @@
android:layout_weight="0"
android:src="@drawable/ic_round_dots_vertical_24"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
</LinearLayout>

View file

@ -15,7 +15,7 @@
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginEnd="3dp"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="0dp"
@ -50,5 +50,5 @@
android:src="@drawable/ic_download_24"
android:textSize="14sp"
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
</LinearLayout>

View file

@ -133,8 +133,8 @@
android:fontFamily="@font/poppins_bold"
android:padding="8dp"
android:text="@string/trending_manga"
android:visibility="invisible"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="invisible" />
<FrameLayout
android:layout_width="match_parent"
@ -172,8 +172,8 @@
android:fontFamily="@font/poppins_bold"
android:padding="8dp"
android:text="@string/trending_manhwa"
android:visibility="invisible"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="invisible" />
<FrameLayout
android:layout_width="match_parent"
@ -211,8 +211,8 @@
android:fontFamily="@font/poppins_bold"
android:padding="8dp"
android:text="@string/trending_novel"
android:visibility="invisible"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="invisible" />
<FrameLayout
android:layout_width="match_parent"
@ -250,8 +250,8 @@
android:fontFamily="@font/poppins_bold"
android:padding="8dp"
android:text="@string/top_rated"
android:visibility="invisible"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="invisible" />
<FrameLayout
android:layout_width="match_parent"
@ -289,8 +289,8 @@
android:fontFamily="@font/poppins_bold"
android:padding="8dp"
android:text="@string/most_favourite"
android:visibility="invisible"
android:textSize="16sp" />
android:textSize="16sp"
android:visibility="invisible" />
<FrameLayout
android:layout_width="match_parent"

View file

@ -93,12 +93,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginBottom="4dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="4dp"
android:gravity="center"
android:visibility="gone"
android:orientation="horizontal"
android:visibility="gone"
tools:ignore="UseCompoundDrawables">
<ImageView

View file

@ -13,8 +13,8 @@
android:layout_height="wrap_content"
android:layout_gravity="start|center_vertical"
app:cardBackgroundColor="@color/nav_bg"
app:strokeColor="@color/transparent"
app:cardCornerRadius="24dp">
app:cardCornerRadius="24dp"
app:strokeColor="@color/transparent">
<ImageView
android:id="@+id/notificationBannerImage"
@ -83,8 +83,8 @@
android:layout_marginStart="125dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:padding="8dp"
android:orientation="vertical">
android:orientation="vertical"
android:padding="8dp">
<TextView
android:id="@+id/notificationText"

View file

@ -5,8 +5,8 @@
android:id="@+id/mediaInfoQuelContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginHorizontal="24dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="16dp">
<com.google.android.material.card.MaterialCardView

View file

@ -1,10 +1,11 @@
<?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="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
android:layout_marginBottom="8dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -19,12 +20,12 @@
android:id="@+id/repositoryItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="12sp"
android:ellipsize="end"
android:layout_gravity="center"
android:alpha="0.66"
android:textColor="?attr/colorOnBackground"
android:ellipsize="end"
android:singleLine="true"
tools:text="xyz repo"/>
android:textColor="?attr/colorOnBackground"
android:textSize="12sp"
tools:text="xyz repo" />
</LinearLayout>

View file

@ -90,6 +90,7 @@
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingEnd="16dp">
<androidx.cardview.widget.CardView
android:id="@+id/searchByImage"
android:layout_width="wrap_content"

View file

@ -36,10 +36,10 @@
android:textSize="16sp" />
<TextView
android:layout_marginTop="8dp"
android:id="@+id/settingsDesc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:alpha="0.66"
android:fontFamily="@font/poppins_semi_bold"
android:text="@string/slogan"

View file

@ -65,9 +65,9 @@
android:layout_gravity="top"
android:layout_marginTop="6dp"
android:layout_marginEnd="12dp"
android:visibility="gone"
app:srcCompat="@drawable/ic_circle_add"
app:tint="?attr/colorPrimary"
android:visibility="gone"
tools:ignore="ContentDescription" />
</LinearLayout>
</LinearLayout>

View file

@ -1,12 +1,11 @@
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/titleSearchContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:layout_marginHorizontal="24dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="16dp">
<com.google.android.material.card.MaterialCardView
@ -16,10 +15,10 @@
android:layout_margin="8dp"
app:cardCornerRadius="16dp"
app:layout_constrainedWidth="true"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/titleSearchImage"
@ -45,12 +44,12 @@
android:id="@+id/titleSearchText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="4dp"
android:layout_gravity="center"
android:gravity="center"
android:maxLines="2"
android:ellipsize="end"
android:fontFamily="@font/poppins_bold"
android:gravity="center"
android:maxLines="2"
android:padding="4dp"
android:text="@string/search"
android:textAllCaps="true"
android:textColor="@color/bg_white"

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/widget_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="4dp"
@ -13,8 +13,8 @@
android:id="@+id/image_show_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:shapeAppearanceOverlay="@style/roundedImageView"
android:contentDescription="@string/airing_image"/>
android:contentDescription="@string/airing_image"
app:shapeAppearanceOverlay="@style/roundedImageView" />
<LinearLayout
@ -28,11 +28,11 @@
android:id="@+id/text_show_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:fontFamily="@font/poppins_bold"
android:maxLines="2"
android:text=""
android:textColor="@color/bg_white"
android:maxLines="2"
android:ellipsize="end"
android:textSize="16sp" />
<TextView

View file

@ -65,6 +65,7 @@
</LinearLayout>
</LinearLayout>
<ImageButton
android:id="@+id/urlSub"
android:layout_width="wrap_content"
@ -78,6 +79,7 @@
app:tint="?attr/colorOnBackground"
tools:ignore="ContentDescription,SpeakableTextPresentCheck"
tools:visibility="visible" />
<ImageButton
android:id="@+id/urlDownload"
android:layout_width="wrap_content"

View file

@ -1,6 +1,7 @@
<merge 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">
<FrameLayout
android:id="@+id/trendingContainer"
android:layout_width="match_parent"
@ -17,8 +18,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="32dp"
android:orientation="horizontal"
android:baselineAligned="false">
android:baselineAligned="false"
android:orientation="horizontal">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/searchBar"

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:padding="16dp">
@ -10,8 +10,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:gravity="center"
android:fontFamily="@font/poppins_bold"
android:gravity="center"
android:text="@string/profile_stats_widget" />
<com.google.android.material.materialswitch.MaterialSwitch

View file

@ -1,7 +1,7 @@
<RelativeLayout 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"
xmlns:tools="http://schemas.android.com/tools"
android:theme="@style/Theme.Dantotsu.AppWidgetContainer">
<ImageView
@ -10,7 +10,7 @@
android:layout_height="match_parent"
android:scaleType="fitXY"
android:src="@drawable/linear_gradient_black"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<RelativeLayout
android:id="@+id/widgetContainer"
@ -26,7 +26,7 @@
android:layout_alignParentTop="true"
android:foregroundGravity="center_vertical"
android:src="@drawable/ic_dantotsu_round"
tools:ignore="ContentDescription"/>
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/widgetTitle"
@ -36,11 +36,11 @@
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_toEndOf="@+id/logoView"
android:gravity="center_vertical|start"
android:textAlignment="viewStart"
android:maxLines="2"
android:ellipsize="none"
android:gravity="center_vertical|start"
android:maxLines="2"
android:text="@string/upcoming"
android:textAlignment="viewStart"
android:textSize="20sp"
android:textStyle="bold" />
@ -48,16 +48,16 @@
android:id="@+id/widgetListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
android:layout_below="@id/widgetTitle" />
android:layout_below="@id/widgetTitle"
android:scrollbars="none" />
<TextView
android:id="@+id/empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/no_shows_to_display"
android:textColor="#ffffff"
android:textSize="20sp"