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

Added the DownSampling to BlurTransformation

This commit is contained in:
wasabeef
2015-07-24 18:00:07 +09:00
parent 136a5512c0
commit cfe6dc313a
7 changed files with 45 additions and 26 deletions

View File

@@ -81,7 +81,7 @@ public class MainAdapter extends RecyclerView.Adapter<MainAdapter.ViewHolder> {
@Override
public void onBindViewHolder(MainAdapter.ViewHolder holder, int position) {
Transformation<Bitmap> transformation = null;
Transformation transformation = null;
switch (mDataSet.get(position)) {
case CropTop:
transformation =
@@ -110,7 +110,7 @@ public class MainAdapter extends RecyclerView.Adapter<MainAdapter.ViewHolder> {
transformation = new RoundedCornersTransformation(mPool, 100, 0);
break;
case Blur:
transformation = new BlurTransformation(mContext, mPool, 10);
transformation = new BlurTransformation(mContext, mPool, 25, 1);
break;
case Toon:
transformation = new ToonFilterTransformation(mContext, mPool);

View File

@@ -6,11 +6,10 @@
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:contentDescription="@null"
android:src="@drawable/demo"/>
android:contentDescription="@null"/>
<TextView
android:id="@+id/title"