java - android camera preview out of screen -


i having problem app camera preview.

default camera app: when @ preview default camera , taken picture. default preview shows half less top , bottom side.

my camera app preview: shows on top side. after take picture, center in totally different place (from takers perspective, if end picture same).

goal: want app preview work same default app preview.

i took code https://github.com/googlesamples/android-camera2basic mine same. tip on how achieve or link explanation appreciated!

compare preview app vs default app

soulution:(it make sense if looking @ https://github.com/googlesamples/android-camera2basic)

in method configuretransform(int viewwidth, int viewheight). move preview mtextureview.y();

by how (mtextureview.getheight - displaysizeheight);


Comments