Google App 常用各种jar说明总结

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 {}内容。
可用于在一个机器上的进程间,两台设备各自的进程间,等等。
5.V8 JavaScript engine code
下载地址: https://code.google.com/p/v8/
作用:google强调的新功能是一个叫做V8的JavaScript渲染引擎。该引擎的亮点在于更快速更强壮的JavaScript解析。V8是一个非常反传统 的JavaScript引擎,它能够在后台动态的对JS的对象进行分类——一个在其他高级语言中很常见但JS本身不支持的特性。
6,gson.jar
作用:对gson进行解析和封装
7.Guice
下载地址:
作用:
Guice是一个轻量级,基于Java5(主要运用泛型与注释特性)的依赖注入框架(IOC)。Guice非常小而且快。Guice是类型安全的,它能够对构造函数,属性,方法(包含任意个参数的任意方法,而不仅仅是setter方法)进行注入。
8.android-gifview
作用:
9。Dagger
作用:

A fast dependency injector for Android and Java

10.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

参考:http://blog.csdn.net/wangjia55/article/details/17148535

11.Fonts 字库:

  Arimo 字体:

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

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


中文字体库一般是otf,直接改成ttf即可使用,Demo如下:
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);
            }


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值