您的位置:首页 > 移动开发

Google App 常用各种jar说明总结

2015-03-28 23:02 288 查看
1.nineoldandroids-2.4.0.jar

下载地址:http://nineoldandroids.com/

作用:动画集合,支持动画的旋转,缩放,移动,渐入效果

2.guava.jar

下载地址:https://github.com/google/guava

作用:

The Guava project contains several of Google's core libraries that we rely on in our Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth.

Requires JDK 1.6 or higher (as of 12.0).

3.jsr305.jar

下载地址:http://code.google.com/p/jsr-305/ 这个地址是谷歌的git地址,如果不能打开,可以连接:

https://github.com/1049884729/jsr-305

作用:

This project contains reference implementations, test cases, and other documents under source code control for Java Specification Request 305: Annotations for Software Defect
Detection. More information at the Google group: http://groups.google.com/group/jsr-305

4.protobuf.jar

下载地址:https://github.com/google/protobuf
作用:

protobuf是google出的一个结构化信息传递的工具,用于传递自定的strcut xxx {}内容。

可用于在一个机器上的进程间,两台设备各自的进程间,等等。

详细说明参考:http://blog.sina.com.cn/s/blog_559f6ffc0101bo7u.html

5.V8 JavaScript engine code

参考:/article/7851125.html

/article/11179174.html

下载地址:https://code.google.com/p/v8/

作用:google强调的新功能是一个叫做V8的JavaScript渲染引擎。该引擎的亮点在于更快速更强壮的JavaScript解析。V8是一个非常反传统 的JavaScript引擎,它能够在后台动态的对JS的对象进行分类——一个在其他高级语言中很常见但JS本身不支持的特性。
6,gson.jar
下载地址:https://code.google.com/p/google-gson/
作用:对gson进行解析和封装
7.Guice
下载地址:
https://github.com/google/guice

https://code.google.com/p/google-guice/
作用:
Guice是一个轻量级,基于Java5(主要运用泛型与注释特性)的依赖注入框架(IOC)。Guice非常小而且快。Guice是类型安全的,它能够对构造函数,属性,方法(包含任意个参数的任意方法,而不仅仅是setter方法)进行注入。

可参考http://tech.it168.com/zt/guice/ 学习
8.android-gifview
下载地址:http://code.google.com/p/gifview2/downloads/list
作用:
9。Dagger
下载地址:http://square.github.io/dagger/
https://github.com/square/dagger

作用:


A fast dependency injector for Android and Java

10.Otto
下载地址:https://github.com/square/otto
http://square.github.io/otto/

作用:

Otto is an event bus designed to decouple different parts of your application while still allowing them to communicate efficiently.

Forked from Guava, Otto adds unique functionality to an already refined event bus as well as specializing it to the Android platform.


Otto — Android系统的Event Bus类库

OttoSquare公司在他们应用中使用的Event
Bus实现。从Guava中演变而来,并且专注于Android平台。

通过使用Otto,Square公司的应用组件间不紧密耦合了,单元测试也更加容易了。

您可以通过Otto项目的主页来了解更多内容或者查看Otto项目的源代码


EventBus — Android系统的Event Bus类库

EventBus http://greenrobot.de 出品的另外一个Event
Bus类库,功能稍微多一点。

Read more: http://blog.chengyunfeng.com/?p=449#ixzz3Vgo5jEPB

参考:/article/7674391.html

11.Fonts 字库:

Arimo 字体:

http://www.fontsquirrel.com/fonts/arimo/fonts/arimo

https://www.google.com/fonts#UsePlace:use/Collection:Arimo

中文字体库一般是otf,直接改成ttf即可使用,Demo如下:
引自:http://www.eoeandroid.com/thread-163834-1-1.html
public class Y_fonts extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
/*
* 必须事先在assets底下创建一fonts文件夹 并放入要使用的字体文件(.ttf)
* 并提供相对路径给creatFromAsset()来创建Typeface对象
*/
Typeface fontFace = Typeface.createFromAsset(getAssets(),
"fonts/STXINGKA.TTF");
// 字体文件必须是true type font的格式(ttf);
// 当使用外部字体却又发现字体没有变化的时候(以 Droid Sans代替),通常是因为
// 这个字体android没有支持,而非你的程序发生了错误

TextView text = (TextView) findViewById(R.id.ttf);
text.setTypeface(fontFace);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: