Android(安卓)resource notlong / long identifiers not working
Android resource notlong / long identifiers not working
up vote 1 down vote favorite 1 | Currently I have the following resource folders: The idea is that we have 3 types of devices and the devices should use the resources from the correct folder accordingly. The devices are: The problem is that all 3 devices use resources from layout-sw600dp-notlong. To my understanding 4/3 is categorized as -notlong devices. Is there anything wrong in my identifier usage? Or there's a bug reported for the identifier? Thank in advance. android screen ratio
| |||
3 Answers
active oldest votesup vote 2 down vote | The 'notlong' identifier is for devices that are similar in aspect ratio to baseline devices (seehttp://developer.android.com/guide/practices/screens_support.html). While the docs are scarce on what baseline devices are, typical resolution of Android devices 1.5~1.6. So what you are seeing is correct. While there is a 'long' identifier for devices that are longer than baseline ratios, it looks like you can't force resources for devices that are shorter (e.g. 800x600).
| ||||||||||||
|
up vote 0 down vote | you have read this doc?http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
| ||||
|
up vote 0 down vote | According to the source code. (framework/base/core/java/android/content/res/Configuration.java) So if the aspect ratio is wider than 3:5(or 1.667), it will be treated as long screen. |
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer