matrix - Camera PreviewView is streched in some android devices -
right im playing api2 camera of google , im having problems code. had 2 different camerasessions, 1 video , 1 images. more efficient change code use unique session , make app more efficient. after this, camera preview not working adequately. when im using 4:3 aspect ratio preview become streched @ height. in other way looks fine when im using 16:9 ratio. in both cases pictures looks fine, mean, preview doesnt work correctly pictures taked, have correct aspect ratio. i check different post same problem: camera preview stretched on few android devices camera display / preview in full screen not maintain aspect ratio - image skewed, stretched in order fit on screen but different answers didnt me. know problem inside onmeasure() , settransformmatrix() or onlayoutchangelistener() methods, dont know iḿ doing wrong. ignore code rotation, right dynamic. enter @ else condition. here code: private onlayoutchangelistener mlayoutlistener = new onlayoutchangelistener() { @ov...