Do I need 14 different layouts to support all Android devices?

后端 未结 4 495
别跟我提以往
别跟我提以往 2020-11-28 01:43

I\'m really feeling confused. From the docs at developer.android.com, it seems in order to keep my images scaled correctly (aspect ratio too) across all current Android dev

4条回答
  •  悲哀的现实
    2020-11-28 02:27

    In the layout if you do not use AbsoluteLayout, you application is going to be resized to fit the screen.

    But in some cases, for smaller screens you need declare a new layout with less components for example.

    For images:

    You has some options.

    Simple ignore some resolutions and let the device choose the best image to it. Declare on AndroidManifest for wich sizes you want to support. Or has just one and let the resize screw your application.

提交回复
热议问题