android - CWAC Camera - Unsure of using setCameraView() -


I used CameraDemo-Layout as an example to place the button properly on a screen with a piece of camera I am using.

I am trying to use setCameraView ()

  / ** * if you are overriding on Creatives () and * having your camera view To increase the layout, there is a piece of camera view, so this piece can help * Manage it. You do not need to call it if you allow * to make your camera Viv * instances * pieces. * * Param camera view * Cameraview with your inflated layout * / Protected Zero set cameraAreview (cameraview camera view) {this.cameraView = cameraView; }  

However, I can not use it because it is protected I am using CameraDemo - layout as an example. I have my customcams, customcamfragment and customcommost host.

In the CustomCamFragment I am trying to use setCameraView in the onCreateView, but it is undefined. Was it a mistake or should I follow the rule "You do not have to call it ..." because I do not consider that part to be enough?

But, I can not use it because it is protected

It is designed to make calls from the subcategory of CameraFragment , and a protected method is available for subclasses.

I am using CameraMemo - Layout as an example

and you set setCameraView () in View onCreateView () 's call

  @Override Public View Creatives (LayoutInflater Inflator, View Group Container, Bundle Saved Instance) {View Content = Inflator. In flat (R. Laytamara, container, falls); Cameraview cameraview = (camera view) content.findViewById (R.id.camera); SetCameraView (cameraView); Return (content); }  

I must follow the rule "You do not have to call it ..." because I can not understand that part very much?

is making an example of either you auto CameraView (constructor or layout through inflation), or you are not . If you want to use and subcategories, then you will need to call that subclasses

if you are SetCameraView () , camera view is passing through in the example.

If you do not not instead of making such an example, implementing the camerafragment to create camera view for you, You do not need to call setCameraView () , in part because you have camera view to set.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -