Collage

by jcmore2

jcmore2 /Collage

This library allows you to create a random collage of cards.

131 Stars 26 Forks Last release: Not found 7 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Collage

This library allows you to create a random collage of cards.

The library allows to create fixed Collage (cards can not be moved, scaled or rotated) or dynamic Collage (cards can move, scale and rotate).

Collage is based on library created by thuytrinh

Check CollageSample in

Android app on Google Play

Usage

Add library to your build.gradle:

        compile 'com.jcmore2.collage:collage:1.0.0'

Add CollageView in your xml

        
        

Get CollageView in your activity, create a list of images (Bitmaps, Drawables, Resources) and call 'createCollage'

        CollageView collage = (CollageView) findViewById(R.id.collage);

    List<integer> listRes = new ArrayList<integer>();
    listRes.add(R.drawable.img1);
    listRes.add(R.drawable.img2);
    listRes.add(R.drawable.img3);
    listRes.add(R.drawable.img4);

    collage.createCollageResources(listRes);

  • You can set Collage fixed
        collage.setFixedCollage(true);

  • or dynamic (default)
        collage.setFixedCollage(false);


Credits & Contact

Collage was created by [email protected]

License

Collage is available under the Apache License, Version 2.0.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.