Android的网格布局与空间反向移植 [英] Android GridLayout and Space backport

查看:94
本文介绍了Android的网格布局与空间反向移植的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有网格布局和空间(在SDK 4.0两种引入)用(或计划)的旧的SDK的一个补丁包?

Is there a backport of GridLayout and Space (both introduced in SDK 4.0) available (or planned) for older SDK's?

推荐答案

兼容性库的新版本不支持的网格布局和SpaceLayout但你必须添加的工具库项目。如果你使用Eclipse,你可以导入现有的项目,定位到Android SDK的生活,并选择V7兼容目录。
一旦你拥有原装进口,你可以进入项目属性,并通过Android页面在菜单中添加库项目。这样做的原因似乎是因为,可以不包括在正常的Jar文件附加布局的参数。

The new version of the compatibility library does support the GridLayout and SpaceLayout but you have to add the tools as a library project. If you're using Eclipse you can import an existing project, navigate to where the Android SDK lives, and select the v7 compatibility directory.
Once you have that imported you can go into project properties and add the library project through the Android page in that menu. The reason for this seems to be because of additional layout parameters that can't be included in a normal Jar file.

这篇关于Android的网格布局与空间反向移植的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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