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
作用:
A fast dependency injector for Android and Java
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类库
Otto是Square公司在他们应用中使用的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
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); }
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。