平板电脑"绘制"预选赛 [英] Tablet "drawable" qualifier

查看:113
本文介绍了平板电脑"绘制"预选赛的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来平板设计时为移动+平板电脑,钛项目建成手机版完美,但面临着一些复杂性。

A Titanium project for both Mobile+Tablet, completed mobile version perfectly but facing some complexity when coming to Tablet design.

下面是预选赛的其中钛支持,但也不太能够找到它的目标Android系统的平板电脑的任何限定矩阵

Below is the Matrix of qualifier which supports by Titanium but 'm not able to find any qualifier which targets Android-Tablet

我发现可以强行把事物的Andr​​oid应用资源的平台>机器人> RES 的目录。

I found that you can forcefully apply Android resource by putting things in "platform>android>res" directory.

var tab = Titanium.UI.createTab({  
    icon:Ti.App.Android.R.drawable.tab_icon
});

使用Tab键和图标属性我能够获得绘制,但它不是休息控制工作(即ImageView的,按钮,查看等)< BR>
我该如何设置ImageView的背景这需要从平台文件夹中的形象?

with Tab and its icon property I'm able to get the drawable but its not working for rest controls (i.e. ImageView, Button, View etc...)
how do I set background of ImageView which takes image from platform folder?

任何暗示/建议欢迎

推荐答案

做了一些工作,钛后,我来到了钛遵循同样的标准命名绘制,但唯一不同的结论是,在Android中,我们使用绘制,华电国际,但钛是 RES-华电国际

After doing some work with Titanium I came into conclusion that Titanium follows the same standard for naming drawable but the only difference is that in android we using drawable-hdpi but in Titanium it is res-hdpi.

这篇关于平板电脑&QUOT;绘制&QUOT;预选赛的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆