Android   收集索引贴

android标题栏(titlebar)显示进度条


http://www.oschina.net/code/snippet_163910_6192

1. [代码][Java]代码     

1 protected void onCreate(Bundle savedInstanceState) {
2     super.onCreate(savedInstanceState);
3     requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);//先给Activity注册界面进度条功能
4     setContentView(R.layout.main);
5     setProgressBarIndeterminateVisibility(true);//在需要显示进度条的时候调用这个方法
6     setProgressBarIndeterminateVisibility(false);//在不需要显示进度条的时候调用这个方法
7 }


2. [图片] device.png    



android有进度条的下载图片并且显示图片


http://blog.csdn.net/springsky_/article/details/7208956

  1. URL u = new URL(url);  
  2.             URLConnection conn = u.openConnection();  
  3.             conn.connect();  
  4.             InputStream is = conn.getInputStream();  
  5.             fileSize = conn.getContentLength();  
  6.             if(fileSize<1||is==null)  
  7.             {  
  8.                 sendMessage(DOWNLOAD_ERROR);  
  9.             }else{  
  10.                 sendMessage(DOWNLOAD_PREPARE);  
  11.                 FileOutputStream fos = new FileOutputStream(getPath());  
  12.                 byte[] bytes = new byte[1024];  
  13.                 int len = -1;  
  14.                 while((len = is.read(bytes))!=-1)  
  15.                 {  
  16.                     fos.write(bytes, 0, len);  
  17.                     downloadSize+=len;  
  18.                     sendMessage(DOWNLOAD_WORK);  
  19.                 }  
  20.                 sendMessage(DOWNLOAD_OK);  
  21.                 is.close();  
  22.                 fos.close();  
  23.             } 

ListView详解之三

http://www.cnblogs.com/fww330666557/archive/2012/01/11/2318944.html

 

Android编程之SparseArray<E>详解

http://blog.csdn.net/xyz_fly/article/details/7931943


可以直接在JVM上做android自动测试的工具https://github.com/robolectric/robolectric



http://www.eoeandroid.com/thread-168421-1-1.html



支持拖拽排序和左右滑动删除的Android ListView扩展:

https://github.com/bauerca/drag-sort-listview


android 左右翻页

android-flip

A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android

http://openaphid.github.com/

  chinese_pinyin

https://github.com/flyerhzm/chinese_pinyin

图片切割  minimagick
多级分类   awesome_nested_set
省市区级联选择 Rails Engine Gem  

china_city

HTML5控件 The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas

paper.js


ASimpleCache

ASimpleCache 是一个为android制定的 轻量级的 开源缓存框架。轻量到只有一个java文件(由十几个类精简而来)。

ASimpleCache


 

android-swipelistview




HoloEverywhere




picasso



xUtils简介

  • xUtils 包含了很多实用的android工具。
  • xUtils 源于Afinal框架,对Afinal进行了大量重构,使得xUtils支持大文件上传,更全面的http请求协议支持,拥有更加灵活的ORM,更多的事件注解支持且不受混淆影响...

注意: jar包导入后运行时报NoClassDefFoundError的看下面连接的内容

  • http://my.oschina.net/u/1171837/blog/161301

ListViewAnimations (Play Store Demo)

ListViewAnimations





Android-Universal-Image-Loader






你可能感兴趣的:(android)