Android Custom Camera Demo Source

Source: Internet
Author: User

GitHub Source: Https://github.com/LinJZong/AndroidProject.git

Imitating the 360 camera, the image resource comes from 360 cameras and is for learning only. As follows:

At present, the functions of photo, Save, picture compress, touch focus, photo success with animation, Flash switch, gesture zooming and so on are completed, and the function is continuously updated.

Recently updated more frequent, will not put csdn, and so function all finished and then pass CSDN. Introduced under the current main several functional categories to gather enough 200 words.

 Public class extends Implements surfaceholder.callback{

A custom class that inherits from Sufaceview, which implements interactive work with the camera, including camera initialization, destruction, zoom level settings, flash mode settings, and focus, while listening for screen changes, creating different high-width images on the screen.

 Public class extends Implements animationlistener{

Customize the focus picture. Encapsulates the animated effect of a focused picture.

 Public class extends Implements Animationlistener

Temporary picture. An animated effect that moves the picture down to the lower-left corner when the photo is successful.

 Public class extends Implements Picturecallback,onseekbarchangelistener,autofocuscallback

Camera class container. The most important custom class. Contains the above three view. To customize the camera activity, simply reference the class in layout. This class encapsulates the image compression function, the picture saving function, the touch screen focusing function, and the Gesture setting camera zoom level function. The interaction of the activity and the camera is carried out through the interface it provides.

Android Custom Camera Demo Source

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.