android - Change size of FrameLayout when screen size has been found -
at moment have framelayout hold preview of picture taken. size of determined in layout xml file created it, @ moment set fill_parent. image taken @ 4:3 aspect ratio, isn't going right aspect ratio users screen.
for example xperia x10 480 x 854, 4:3 image taken camera stretches fit framelayout.
what want change size of framelayout outside of xml file 4:3 , size appropriate users screen size. ideas?
i guess using imageview inside framelayout display actual picture? in case, use scaletype define how picture should stretched.
you can set in xml, use android:scaletype=".." inside imageview tag.
Comments
Post a Comment