Google App 常用各種jar說明總結

來源:互聯網
上載者:User

標籤:

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/  這個地址是Google的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.html5.V8 JavaScript engine code參考:http://blog.csdn.net/doon/article/details/32323625            http://blog.csdn.net/iceman_bing/article/details/4492839: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 Java10.Otto:https://github.com/square/ottohttp://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類庫

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


中文字型庫一般是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);            }


Google App 常用各種jar說明總結

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.