I want to resize the QCARSampleGLView(GLSurfaceView) and place it at any part of the screen eg vertical-center align. Please help me out.
Thanks for your reply. I have changed the camera surface size by giving the height and width in the addContentView. Code :-
addContentView(mGlView, new LayoutParams(
Now, i want to put this frame in the center of the screen.
Please help me.
This isn't a use case we test, but if you change the size and position of the view you'll need to update the configureVideoBackground method in native (e.g. ImageTargets.cpp). You can set the size and position of the VideoBackgroundConfig structure to match your new drawing rectangle. Note that this method currently sets the size to something larger than the screen in most cases, as the camera image typically has a different aspect ratio than the screen. You'll want to keep the camera aspect ratio intact, it's defined by videoMode width and height.
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?