mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 11:22:12 +00:00
Clean Resources
This commit is contained in:
parent
96d8c58a0a
commit
95aa50a47c
@ -3,10 +3,9 @@ package com.looker.droidify.screen
|
||||
import android.content.Context
|
||||
import android.graphics.drawable.Drawable
|
||||
import android.view.ViewGroup
|
||||
import androidx.appcompat.content.res.AppCompatResources
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import coil.load
|
||||
import com.google.android.material.circularreveal.CircularRevealFrameLayout
|
||||
import com.google.android.material.card.MaterialCardView
|
||||
import com.google.android.material.imageview.ShapeableImageView
|
||||
import com.looker.droidify.R
|
||||
import com.looker.droidify.entity.Product
|
||||
@ -25,14 +24,12 @@ class ScreenshotsAdapter(private val onClick: (Product.Screenshot) -> Unit) :
|
||||
private val items = mutableListOf<Item.ScreenshotItem>()
|
||||
|
||||
private class ViewHolder(context: Context) :
|
||||
RecyclerView.ViewHolder(CircularRevealFrameLayout(context)) {
|
||||
RecyclerView.ViewHolder(MaterialCardView(context)) {
|
||||
val image: ShapeableImageView
|
||||
val placeholder: Drawable
|
||||
|
||||
init {
|
||||
itemView as CircularRevealFrameLayout
|
||||
itemView.foreground =
|
||||
AppCompatResources.getDrawable(itemView.context, R.drawable.bg_item_rounded_ripple)
|
||||
itemView as MaterialCardView
|
||||
val surfaceColor =
|
||||
itemView.context.getColorFromAttr(R.attr.colorSurface).defaultColor
|
||||
|
||||
@ -48,6 +45,7 @@ class ScreenshotsAdapter(private val onClick: (Product.Screenshot) -> Unit) :
|
||||
.setAllCornerSizes(radius)
|
||||
.build()
|
||||
image.shapeAppearanceModel = shapeAppearanceModel
|
||||
itemView.shapeAppearanceModel = shapeAppearanceModel
|
||||
itemView.addView(image)
|
||||
itemView.layoutParams = RecyclerView.LayoutParams(
|
||||
RecyclerView.LayoutParams.WRAP_CONTENT,
|
||||
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:alpha="0.3" android:color="@color/green100" android:state_enabled="false" />
|
||||
|
||||
<item android:color="@color/green100" />
|
||||
|
||||
</selector>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:alpha="0.26" android:color="@color/green200" android:state_enabled="false" />
|
||||
|
||||
<item android:color="@color/green200" />
|
||||
|
||||
</selector>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:alpha="0.3" android:color="@color/red200" android:state_enabled="false" />
|
||||
|
||||
<item android:color="@color/red200" />
|
||||
|
||||
</selector>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:alpha="0.26" android:color="@color/red300" android:state_enabled="false" />
|
||||
|
||||
<item android:color="@color/red300" />
|
||||
|
||||
</selector>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:alpha="0.7" android:color="?attr/colorOnSurface" android:state_selected="false" />
|
||||
|
||||
<item android:color="?android:attr/textColorPrimary" android:state_selected="true" />
|
||||
</selector>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?colorPrimary">
|
||||
<item android:id="@android:id/mask">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="?colorPrimary" />
|
||||
<corners android:radius="@dimen/shape_medium_corner" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners
|
||||
android:bottomLeftRadius="@dimen/shape_large_corner"
|
||||
android:bottomRightRadius="@dimen/shape_large_corner" />
|
||||
</shape>
|
@ -5,6 +5,6 @@
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/white"
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M8.0855,18.6109L14.0817,4.6064C14.2991,4.0987 14.8868,3.8633 15.3946,4.0807C15.866,4.2826 16.1026,4.8038 15.96,5.2837L15.9202,5.3936L9.9241,19.3981C9.7067,19.9058 9.1189,20.1412 8.6112,19.9238C8.1398,19.722 7.9032,19.2007 8.0458,18.7208L8.0855,18.6109L14.0817,4.6064L8.0855,18.6109ZM2.2929,11.2929L6.2929,7.2929C6.6834,6.9024 7.3166,6.9024 7.7071,7.2929C8.0676,7.6534 8.0953,8.2206 7.7903,8.6129L7.7071,8.7071L4.4142,12L7.7071,15.2929C8.0976,15.6834 8.0976,16.3166 7.7071,16.7071C7.3466,17.0676 6.7794,17.0953 6.3871,16.7903L6.2929,16.7071L2.2929,12.7071C1.9324,12.3466 1.9047,11.7794 2.2097,11.3871L2.2929,11.2929L6.2929,7.2929L2.2929,11.2929ZM16.2921,7.2917C16.6526,6.9312 17.2198,6.9035 17.6121,7.2085L17.7063,7.2917L21.7071,11.2929C22.0678,11.6536 22.0953,12.2211 21.7899,12.6134L21.7066,12.7076L17.7058,16.7031C17.315,17.0934 16.6819,17.0929 16.2916,16.7022C15.9313,16.3414 15.904,15.7742 16.2093,15.3821L16.2925,15.288L19.5854,11.9995L16.292,8.7059C15.9015,8.3153 15.9015,7.6822 16.2921,7.2917Z" />
|
||||
</vector>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/green50" />
|
||||
<background android:drawable="@color/md_theme_light_surface" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/green50" />
|
||||
<background android:drawable="@color/md_theme_light_surface" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
@ -1,21 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="green50">#E8F5E9</color>
|
||||
<color name="green75">#D3FAD6</color>
|
||||
<color name="green100">#A3EBB7</color>
|
||||
<color name="green200">#6EC898</color>
|
||||
<color name="green300">#51DF93</color>
|
||||
<color name="green900">#1B5E20</color>
|
||||
|
||||
<color name="red200">#EF9A9A</color>
|
||||
<color name="red300">#EF8A8A</color>
|
||||
|
||||
<color name="pitch_black">#000000</color>
|
||||
<color name="black">#1E1E1E</color>
|
||||
|
||||
<color name="white">#FFFFFF</color>
|
||||
<color name="darker_white">#DDDDDD</color>
|
||||
<color name="grey_light">#505050</color>
|
||||
<color name="grey_dark">#2C2C2C</color>
|
||||
|
||||
<color name="md_theme_light_primary">#006D3E</color>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item>
|
||||
<item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item>
|
||||
<item name="colorPrimaryInverse">@color/md_theme_light_primaryInverse</item>
|
||||
<item name="android:statusBarColor">@color/green50</item>
|
||||
<item name="android:statusBarColor">@color/md_theme_light_surface</item>
|
||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
|
||||
|
||||
@ -106,8 +106,8 @@
|
||||
<item name="colorSurfaceInverse">@color/md_theme_dark_inverseSurface</item>
|
||||
<item name="colorPrimaryInverse">@color/md_theme_dark_primaryInverse</item>
|
||||
<item name="android:colorBackground">@color/pitch_black</item>
|
||||
<item name="colorOnBackground">@color/green50</item>
|
||||
<item name="android:statusBarColor">@color/black</item>
|
||||
<item name="colorOnBackground">@color/md_theme_dark_onBackground</item>
|
||||
<item name="android:statusBarColor">@color/md_theme_dark_surface</item>
|
||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||
|
||||
<item name="android:fastScrollThumbDrawable">@drawable/scrollbar_thumb</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user