java - Fixing Android apps size -


im made first little app on android.

i've been using android studio developing quite problem app designed fits 5.5" display. on other devices small or larger. don't know how make autosize according size of device.

is there way fix or there way make different apks different mobiles (according display sizes)

ps: there isn't picture in app. writing , calculations. kind of calculator beginners(me). :)

if dont have images on app, set layouts , views width (when needed) 'match_parent' instead of 'wrap_content' or fixed size.

set parent layouts height 'match_parent' , if have background fits screen, set too.

check reference of layoutparams values: http://developer.android.com/reference/android/view/viewgroup.layoutparams.html

if want add images go http://developer.android.com/guide/practices/screens_support.html , try understand concepts of densities independence , supporting multiple devices.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -