Fixed Mono icon not loading/Extension page customization (#44)
This commit is contained in:
parent
eee1242964
commit
2fc351f57a
4 changed files with 55 additions and 65 deletions
|
@ -92,12 +92,6 @@ class ExtensionsActivity : AppCompatActivity() {
|
||||||
bottomMargin = navBarHeight
|
bottomMargin = navBarHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
onBackPressedDispatcher.addCallback(this, restartMainActivity)
|
|
||||||
|
|
||||||
binding.settingsBack.setOnClickListener {
|
|
||||||
onBackPressedDispatcher.onBackPressed()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,7 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginTop="0dp"
|
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
|
@ -31,29 +30,23 @@
|
||||||
app:cardElevation="0dp"
|
app:cardElevation="0dp"
|
||||||
>
|
>
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/settingsBack"
|
|
||||||
android:layout_width="80dp"
|
|
||||||
android:layout_height="80dp"
|
|
||||||
android:background="@color/nav_bg_inv"
|
|
||||||
android:padding="16dp"
|
|
||||||
app:srcCompat="@drawable/ic_round_arrow_back_ios_new_24"
|
|
||||||
app:tint="?attr/colorOnBackground"
|
|
||||||
tools:ignore="ContentDescription,SpeakableTextPresentCheck" />
|
|
||||||
</androidx.cardview.widget.CardView>
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="48dp"
|
||||||
android:layout_gravity="center"
|
android:layout_marginStart="32dp"
|
||||||
android:textAlignment="center"
|
android:layout_marginEnd="32dp"
|
||||||
android:layout_weight="1"
|
android:fontFamily="@font/poppins_bold"
|
||||||
|
android:gravity="center"
|
||||||
android:text="@string/extensions"
|
android:text="@string/extensions"
|
||||||
android:textSize="28sp" />
|
android:textColor="?attr/colorPrimary"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<Space
|
<Space
|
||||||
android:layout_width="80dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="80dp" />
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -65,49 +58,17 @@
|
||||||
tools:ignore="UseCompoundDrawables">
|
tools:ignore="UseCompoundDrawables">
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<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_marginStart="16dp"
|
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
android:transitionName="@string/search"
|
|
||||||
app:boxBackgroundColor="@color/bg"
|
|
||||||
app:boxBackgroundMode="outline"
|
|
||||||
app:boxCornerRadiusBottomEnd="28dp"
|
|
||||||
app:boxCornerRadiusBottomStart="28dp"
|
|
||||||
app:boxCornerRadiusTopEnd="28dp"
|
|
||||||
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:fontFamily="@font/poppins_bold"
|
|
||||||
android:imeOptions="actionSearch"
|
|
||||||
android:inputType="textPersonName"
|
|
||||||
android:selectAllOnFocus="true"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
app:boxStrokeColor="@color/text_input_layout_stroke_color"
|
|
||||||
tools:ignore="LabelFor,TextContrastCheck" />
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabLayout
|
<com.google.android.material.tabs.TabLayout
|
||||||
android:id="@+id/tabLayout"
|
android:id="@+id/tabLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="48dp"
|
||||||
app:tabMode="fixed"
|
app:tabContentStart="32dp"
|
||||||
app:tabTextColor="?attr/colorOnBackground"
|
app:tabMode="scrollable"
|
||||||
selectedTabIndicatorColor="?attr/colorPrimary"
|
app:tabPaddingEnd="16dp"
|
||||||
app:tabIndicatorColor="?attr/colorPrimary"
|
app:tabPaddingStart="16dp"
|
||||||
|
app:tabTextAppearance="@style/NavBarText"
|
||||||
app:tabGravity="fill">
|
app:tabGravity="fill">
|
||||||
<com.google.android.material.tabs.TabItem
|
<com.google.android.material.tabs.TabItem
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -124,9 +85,43 @@
|
||||||
<com.google.android.material.tabs.TabItem
|
<com.google.android.material.tabs.TabItem
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Available Manga"/>
|
android:text="Available Manga"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
</com.google.android.material.tabs.TabLayout>
|
</com.google.android.material.tabs.TabLayout>
|
||||||
|
|
||||||
|
<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_marginStart="16dp"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:transitionName="@string/search"
|
||||||
|
app:boxBackgroundColor="@color/bg"
|
||||||
|
app:boxBackgroundMode="outline"
|
||||||
|
app:boxCornerRadiusBottomEnd="28dp"
|
||||||
|
app:boxCornerRadiusBottomStart="28dp"
|
||||||
|
app:boxCornerRadiusTopEnd="28dp"
|
||||||
|
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:fontFamily="@font/poppins_bold"
|
||||||
|
android:imeOptions="actionSearch"
|
||||||
|
android:inputType="textPersonName"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:selectAllOnFocus="true"
|
||||||
|
android:textSize="14sp"
|
||||||
|
|
||||||
|
tools:ignore="LabelFor,TextContrastCheck" />
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<androidx.viewpager2.widget.ViewPager2
|
<androidx.viewpager2.widget.ViewPager2
|
||||||
android:id="@+id/viewPager"
|
android:id="@+id/viewPager"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
|
<monochrome android:drawable="@drawable/mono"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
|
@ -226,7 +226,7 @@
|
||||||
<item name="colorErrorContainer">@color/md_theme_dark_5_errorContainer</item>
|
<item name="colorErrorContainer">@color/md_theme_dark_5_errorContainer</item>
|
||||||
<item name="colorOnError">@color/md_theme_dark_5_onError</item>
|
<item name="colorOnError">@color/md_theme_dark_5_onError</item>
|
||||||
<item name="colorOnErrorContainer">@color/md_theme_dark_5_onErrorContainer</item>
|
<item name="colorOnErrorContainer">@color/md_theme_dark_5_onErrorContainer</item>
|
||||||
<item name="android:colorBackground">@color/md_theme_dark_5_background</item>
|
<item name="android:colorBackground">@color/md_1_theme_dark_background</item>
|
||||||
<item name="colorOnBackground">@color/md_theme_dark_5_onBackground</item>
|
<item name="colorOnBackground">@color/md_theme_dark_5_onBackground</item>
|
||||||
<item name="colorSurface">@color/md_theme_dark_5_surface</item>
|
<item name="colorSurface">@color/md_theme_dark_5_surface</item>
|
||||||
<item name="colorOnSurface">@color/md_theme_dark_5_onSurface</item>
|
<item name="colorOnSurface">@color/md_theme_dark_5_onSurface</item>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue