1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-10-04 09:53:21 +08:00

Release 4.3.0 (#184)

* refactor: clean code

* update: gpuimage

* update: min sdk to 21

* refactor: remove support rs

* update: gradle plugin

* style: fix xml format

* update: update gradle properties

* release 4.2.1

* update: samples

* update: sample

* update:changelog

* remove comments

* change release version
This commit is contained in:
Daichi Furiya
2020-09-27 07:37:31 +09:00
committed by GitHub
parent 4b4f6b1ad4
commit 09e62054e9
26 changed files with 59 additions and 265 deletions

View File

@@ -10,9 +10,6 @@ android {
targetSdkVersion TARGET_SDK_VERSION as int
versionCode VERSION_CODE as int
versionName VERSION_NAME
renderscriptTargetApi TARGET_SDK_VERSION as int
renderscriptSupportModeEnabled true
}
// SigningConfigs

View File

@@ -16,7 +16,7 @@ class MainActivity : AppCompatActivity() {
layoutManager = LinearLayoutManager(context)
adapter = MainAdapter(context, mutableListOf(
Mask, NinePatchMask, RoundedCorners, CropTop, CropCenter, CropBottom, CropSquare, CropCircle,
CropCircleWithBorder, Grayscale, Blur, SupportRSBlur, Toon, Sepia, Contrast, Invert,
CropCircleWithBorder, Grayscale, BlurLight, BlurDeep, Toon, Sepia, Contrast, Invert,
Pixel, Sketch, Swirl, Brightness, Kuawahara, Vignette
))
}

View File

@@ -41,8 +41,8 @@ class MainAdapter(
ColorFilter,
Grayscale,
RoundedCorners,
Blur,
SupportRSBlur,
BlurLight,
BlurDeep,
Toon,
Sepia,
Contrast,
@@ -131,14 +131,14 @@ class MainAdapter(
RoundedCornersTransformation.CornerType.DIAGONAL_FROM_TOP_LEFT)))
.into(holder.image)
Blur -> Glide.with(context)
BlurLight -> Glide.with(context)
.load(R.drawable.check)
.apply(bitmapTransform(BlurTransformation(25)))
.into(holder.image)
SupportRSBlur -> Glide.with(context)
BlurDeep -> Glide.with(context)
.load(R.drawable.check)
.apply(bitmapTransform(SupportRSBlurTransformation(25, 10)))
.apply(bitmapTransform(BlurTransformation(25, 8)))
.into(holder.image)
Toon -> Glide.with(context)