Screen Compatibility issue in android

后端 未结 3 462
臣服心动
臣服心动 2021-01-03 09:45

I have a problem regarding my app.I have created tab bar using image button,when I run the app in 480*800 hdpi device the tab bar images are displaying perfectly when I run

3条回答
  •  醉梦人生
    2021-01-03 10:21

    For detail, please refer to Android Developer Guide.

    To summarize, you must declare each supporting screen sizes in your AndroidManifest.xml. For example, you have to include the following:

    
    

    To support 240*320, you must do the following:

    1: In AndroidManifest.xml, include

    
    

    2: Create different layout-small folder:

    res/layout/layout-small/
    

    3: Create drawable-ldpi folder (you already did):

    res/drawable-ldpi/
    

提交回复
热议问题