1

I want a nice camera shutter effect for my camera overlay in Android.

How can I do this?

The following is my attempt, any other fancier effect like in iOS?

This is what I've done

Roy Lee
  • 10,572
  • 13
  • 60
  • 84
  • Google on acrivity change animation, maby is that what you are looking for – Maikel Bollemeijer Apr 27 '13 at 12:21
  • @MaikelBollemeijer Thanks for the suggestion :) But I do know how to change the animation of activity. Just that I wanted a fancier animation to open up a camera. – Roy Lee Apr 27 '13 at 12:56
  • @Roylee how did you manage to show the camera preview in portrait mode, including QR code scanning? i thought that such a thing causes weird results on both the preview and the output image. – android developer Apr 27 '13 at 13:24
  • @androiddeveloper that was my intention to tweak it into portrait mode as I would like the camera preview to remain under its parent. Just like what you have seen, with actionbar on top. – Roy Lee Apr 27 '13 at 13:26
  • @Roylee yes, but how did you do it? does it work well? according to my experience, setting the camera preview to run on portrait mode causes weird problems on many devices. usually people would simply suggest that i use the "natural" orientation of the camera which is landscape for this issue. – android developer Apr 27 '13 at 13:29
  • @androiddeveloper Yes It works very well, on other devices as well, just some minor tweaking on the zXing library. :) And my app is purely to scan QR code. – Roy Lee Apr 27 '13 at 13:31
  • @Roylee can you please post about it somewhere? last time i've tried it , it was really terrible and messy and in the end i've just used landscape and rotated everything, so the user thinks it's portrait, but it's in fact landscape. – android developer Apr 27 '13 at 13:32
  • @androiddeveloper Okay I have made the post for you: http://stackoverflow.com/questions/16252791/how-to-show-zxing-camera-in-potrait-mode/16252917#16252917 – Roy Lee Apr 27 '13 at 13:59
  • 1
    @Roylee thanks! i think you can also gain some credit for answering this question that was asked by others. i'm sure this question exists somewhere : http://stackoverflow.com/search?q=zxing+portrait – android developer Apr 27 '13 at 14:23

0 Answers0