I'm studing this Google project with an example of Camera2 using: https://github.com/googlesamples/android-Camera2Basic
This example works perfectly. Now I want to have the area preview smaller than in this example; so I changed the ratio like this:
mTextureView.setAspectRatio(getScreenWidth(), getScreenHeight() - bottom_area_height);
but the result is bad... the preview doesn't have a good ratio now (is too stretched horizontally):
Have you got an idea guys?
Thank you very much!