Coder Social home page Coder Social logo

android-collage-views's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-collage-views's Issues

How to transform original image?

So, first of all thanks for great library! I've added your MultiTouchListener to my ImageView, it works great. The thing is I have to save my image to file. I did it like this:

Bitmap bitmap = Bitmap.createBitmap(imageContainer.getWidth(), imageContainer.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
canvas.drawColor(Color.WHITE);
imageContainer.draw(canvas);
try {
            newBitmap.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(new File("/sdcard/preview.jpg")));
            System.out.println("Saved successfully!");
}
catch (Exception e){
            e.printStackTrace();
}

It works, but orginal image is much bigger than one I got from rendering "imageContainer" (which contains ImageView) onto canvas.

I tried something like that:

Bitmap newBitmap = Bitmap.createBitmap(image.getWidth(), image.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(newBitmap);
canvas.drawColor(Color.WHITE);
Paint paint = new Paint();
paint.setAntiAlias(true);
canvas.drawBitmap(image, imageView.getMatrix(), paint);

But I'm getting some strange results. Can you maybe help me?

Save Final Image

Can anyone share the code to save the final image after all the required modifications?

How to get the view's position after translation and scale?

Could you tell me how to calculate the view's position after translated/Scaled ?
I know view.setTranslationX() and view.setTranslationY() don't change the view's real position( because the view's getLeft() and getTop() are not change), but after being dragged and scaled, How to get the visual position (such as get the distance to parent's left and top)?

Bottom image on top of other images

Hi,
Am using this library code to make collage ,but i don't know how to get selected bottom image on top of
other image.Because the last image always comes under other images.

Thanks

Multiple Collage-view

Hi,
How can i add multiple collage-views on different positions by creating single object?

.

.

Button in viewgroup can not move

I add a button in a LinearLayout and set LinearLayout MultiTouchListener.
when I press the button and move, LinearLayout doesnt move
if I press outside the button, it works just fine.
Is there a convenient way to make these button clickable and make the parentView swipe even if the user puts his finger on a button initially?


thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.