Android screen size resolution

后端 未结 2 1503
忘掉有多难
忘掉有多难 2021-01-17 01:03

My app works perfectly in resolution 480x800. If I keep the 480x800 resolution but change the screen size to for example 2.7 inches, 3.7 inches or 5.4 inches it still is per

相关标签:
2条回答
  • 2021-01-17 01:08

    I would really like to see some code.

    If you use RelativeLayout with attributes like android:layout_width and android:layout_height and specify values in dp (density pixels) e.g. android:layout_height="40dp" it should work just fine.

    Please try to share some code with us.

    0 讨论(0)
  • 2021-01-17 01:12

    Make sure that your assets that you have in your ldpi, mdpi, hdpi and xhdpi folders are scaled correctly to accommodate the diff. resolutions. I accidentally scaled some assets incorrectly, and although they were in the correct folders..gave me some bad results

    http://developer.android.com/guide/practices/screens_support.html

    0 讨论(0)
提交回复
热议问题