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