mirror of
https://github.com/wasabeef/glide-transformations.git
synced 2025-10-04 09:53:21 +08:00
v3.3.0 (#127)
* fixed #119 * update gradle files * rename * add sample of SupportRSBlur * update libs * bump up 3.3.0
This commit is contained in:
@@ -9,6 +9,9 @@ android {
|
||||
targetSdkVersion TARGET_SDK_VERSION as int
|
||||
versionCode "git rev-list origin/master --count".execute().text.toInteger()
|
||||
versionName VERSION_NAME
|
||||
|
||||
renderscriptTargetApi TARGET_SDK_VERSION as int
|
||||
renderscriptSupportModeEnabled true
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
@@ -59,5 +62,5 @@ dependencies {
|
||||
implementation "jp.co.cyberagent.android.gpuimage:gpuimage-library:${GPUIMAGE_VERSION}"
|
||||
implementation "com.android.support:appcompat-v7:${SUPPORT_PACKAGE_VERSION}"
|
||||
implementation "com.android.support:recyclerview-v7:${SUPPORT_PACKAGE_VERSION}"
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta4'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
dataSet.add(Type.Grayscale);
|
||||
dataSet.add(Type.RoundedCorners);
|
||||
dataSet.add(Type.Blur);
|
||||
dataSet.add(Type.SupportRSBlur);
|
||||
dataSet.add(Type.Toon);
|
||||
dataSet.add(Type.Sepia);
|
||||
dataSet.add(Type.Contrast);
|
||||
|
@@ -9,10 +9,13 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.load.MultiTransformation;
|
||||
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import jp.wasabeef.glide.transformations.BlurTransformation;
|
||||
import jp.wasabeef.glide.transformations.ColorFilterTransformation;
|
||||
import jp.wasabeef.glide.transformations.CropCircleTransformation;
|
||||
@@ -22,6 +25,7 @@ import jp.wasabeef.glide.transformations.CropTransformation.CropType;
|
||||
import jp.wasabeef.glide.transformations.GrayscaleTransformation;
|
||||
import jp.wasabeef.glide.transformations.MaskTransformation;
|
||||
import jp.wasabeef.glide.transformations.RoundedCornersTransformation;
|
||||
import jp.wasabeef.glide.transformations.SupportRSBlurTransformation;
|
||||
import jp.wasabeef.glide.transformations.gpu.BrightnessFilterTransformation;
|
||||
import jp.wasabeef.glide.transformations.gpu.ContrastFilterTransformation;
|
||||
import jp.wasabeef.glide.transformations.gpu.InvertFilterTransformation;
|
||||
@@ -56,6 +60,7 @@ public class MainAdapter extends RecyclerView.Adapter<MainAdapter.ViewHolder> {
|
||||
Grayscale,
|
||||
RoundedCorners,
|
||||
Blur,
|
||||
SupportRSBlur,
|
||||
Toon,
|
||||
Sepia,
|
||||
Contrast,
|
||||
@@ -163,6 +168,12 @@ public class MainAdapter extends RecyclerView.Adapter<MainAdapter.ViewHolder> {
|
||||
.apply(bitmapTransform(new BlurTransformation(25)))
|
||||
.into(holder.image);
|
||||
break;
|
||||
case SupportRSBlur:
|
||||
Glide.with(context)
|
||||
.load(R.drawable.check)
|
||||
.apply(bitmapTransform(new SupportRSBlurTransformation(25, 10)))
|
||||
.into(holder.image);
|
||||
break;
|
||||
case Toon:
|
||||
Glide.with(context)
|
||||
.load(R.drawable.demo)
|
||||
|
Reference in New Issue
Block a user