java 动态代理 阿bin_Android GridLayout V7 的支持

Android GridLayout V7 的支持

Android,google,gridlayout,

Android4.0增加了一个 GridLayout , 对于4.0之前的版本,如果要使用 GridLayout ,可以使用 google 提供的android.support.v7.widget.GridLayout , 这是一个项目,在你的 sdk 目录下 sdk_folder\extras\android\compatibility\v7\gridlayout

Library Project including GridLayout.

This can be used by an Android project to provide access to GridLayout on applications running on API 7+ .

按我的理解,这个可以被当成一个Android project使用,用来为API 7 以上的版本提供GridLayout的支持。

There is technically no source, but the src folder is necessary to ensure that the build system works. The content is actually located in libs/android-support-v7-gridlayout.jar .

项目的src目录是空的,但是是必须的,不然会运行不起来。真正的代码被放在了 libs 下的 jar 包里了。

USAGE:

Make sure you use in your layouts instead of \. Same for \ instead of \. \而不是\。

Additionally, all of GridLayout's attributes should be put in the namespace of the app, as those attributes have been redefined in the library so that it can run on older platforms that don't offer those attributes in their namespace.

要注意命名空间的问题。例子里有,注意看readme.txt

To know which attributes need the application namespace, look at the two declare-styleable declared in res/values/attrs.xml

哪些参数可以使用,参考 res/values/attrs.xml

总的来说,到目前为止的所有试验的结果是,这个只能当成项目,导入到你的workspace里,导入后,这个项目默认是一个library项目,可以看项目下的project.properties文件,里面有这么几行:

# Project target.

target=android-7

android.library=true

我尝试把这个GridLayout当成一个jar包导入到我的项目里,到目前为止是没有成功的。在网上找到 GridLayout 的源码,但是不是全部的。

相关文章

- EOF -

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。

转载请注明:文章转载自 Binkery 技术博客 [https://binkery.com]

本文标题: Android GridLayout V7 的支持

本文地址:https://binkery.com/archives/177.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值