Android Open Source - glide-transformations Main Activity






From Project

Back to project page glide-transformations.

License

The source code is released under:

Apache License

If you think the Android project glide-transformations listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package jp.wasabeef.example.glide;
/*from www.  ja v a  2 s .  co m*/
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;

import java.util.ArrayList;
import java.util.List;

import jp.wasabeef.example.glide.MainAdapter.Type;


public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        RecyclerView recyclerView = (RecyclerView) findViewById(R.id.list);
        recyclerView.setLayoutManager(new GridLayoutManager(this, 2));

        List<Type> dataSet = new ArrayList<>();
        dataSet.add(Type.Crop);
        dataSet.add(Type.CropSquare);
        dataSet.add(Type.CropCircle);
        dataSet.add(Type.ColorFilter);
        dataSet.add(Type.Grayscale);
        dataSet.add(Type.RoundedCorners);
        dataSet.add(Type.Blur);
        dataSet.add(Type.Toon);
        dataSet.add(Type.Sepia);
        dataSet.add(Type.Contrast);
        dataSet.add(Type.Invert);
        dataSet.add(Type.Pixel);
        dataSet.add(Type.Sketch);
        dataSet.add(Type.Swirl);
        dataSet.add(Type.Brightness);
        dataSet.add(Type.Kuawahara);
        dataSet.add(Type.Vignette);

        recyclerView.setAdapter(new MainAdapter(this, dataSet));
    }
}




Java Source Code List

jp.wasabeef.example.glide.MainActivity.java
jp.wasabeef.example.glide.MainAdapter.java
jp.wasabeef.glide.transformations.ApplicationTest.java
jp.wasabeef.glide.transformations.BlurTransformation.java
jp.wasabeef.glide.transformations.ColorFilterTransformation.java
jp.wasabeef.glide.transformations.CropCircleTransformation.java
jp.wasabeef.glide.transformations.CropSquareTransformation.java
jp.wasabeef.glide.transformations.CropTransformation.java
jp.wasabeef.glide.transformations.GrayscaleTransformation.java
jp.wasabeef.glide.transformations.RoundedCornersTransformation.java
jp.wasabeef.glide.transformations.gpu.BrightnessFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.ContrastFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.InvertFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.KuwaharaFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.PixelationFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.SepiaFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.SketchFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.SwirlFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.ToonFilterTransformation.java
jp.wasabeef.glide.transformations.gpu.VignetteFilterTransformation.java