drawable-540x960 directory name invalid

前端 未结 5 1928
轻奢々
轻奢々 2021-01-07 01:23

In my application i have to support 540x960 screens. I have created a directory named: drawable-540x960 for containing all graphics items for this screen. But i

5条回答
  •  广开言路
    2021-01-07 02:05

    Android didnt recognize drawable-540x960 because it is an invalid size qualifier

    You might want to look at android's guideline on supporting different screens http://developer.android.com/guide/practices/screens_support.html#NewQualifiers

    Here are some examples valid identifiers

    res/layout-sw600dp/main_activity.xml   # For 7” tablets (600dp wide and bigger)
    res/layout-sw720dp/main_activity.xml   # For 10” tablets (720dp wide and bigger)
    

提交回复
热议问题