The app was written before the headline article: http://www.managershare.com/post/155110, and then thought of not doing an app like this, let the phone calculate on the line. I didn't think much of it and started the whole.
The project uses three open source packages: One is picture loading: Https://github.com/nostra13/Android-Universal-Image-Loader usage:
1. Initializing in the oncreate of Appliction
/** * Initialize imageloader */public void Initimageloader () {File Cachedir = storageutils.getcachedirectory ( Getapplicationcontext ()); imageloaderconfiguration config = new Imageloaderconfiguration.builder ( Getapplicationcontext ()). MemoryCache (New Lrumemorycache (5 * 1024x768 * 1024x768)). Memorycachesize (* 1024x768). Disccache ( New Unlimiteddisccache (Cachedir)). Disccachefilenamegenerator (New Hashcodefilenamegenerator ()). build (); I Mageloader.getinstance (). init (config);} Public displayimageoptions getoptions (int drawableid) {return new Displayimageoptions.builder (). Showimageonloading ( Drawableid). Showimageforemptyuri (Drawableid). Showimageonfail (Drawableid). Resetviewbeforeloading (True). Cacheinmemory (True). Cacheondisc (True). Imagescaletype (imagescaletype.exactly). Bitmapconfig (Bitmap.Config.RGB_ 565). Build ();}
2. Call when using:
Imageloader.getinstance (). DisplayImage (Avatarurl,holder.mimage,myapplication.getinstance (). GetOptions ( R.drawable.user_icon_default_main), new Simpleimageloadinglistener () {@Overridepublic void Onloadingcomplete (String Imageuri,view View, Bitmap loadedimage) {super.onloadingcomplete (Imageuri, View, loadedimage);});
One is the drop-down refresh: Https://github.com/johannilsson/android-pulltorefresh use method:
Set Pulltorefreshmlistview.setmode (Mode.both); Mlistview.setonrefreshlistener (New Onrefreshlistener2<listview > () {//dropdown pulling down@overridepublic void Onpulldowntorefresh (pulltorefreshbase<listview> refreshView) { String label = Dateutils.formatdatetime (Mainact.this,system.currenttimemillis (), dateutils.format_show_time| dateutils.format_show_date| Dateutils.format_abbrev_all); Refreshview.getloadinglayoutproxy (). Setlastupdatedlabel (label); MListView.setMode ( Mode.both);p Ullfromuser = True;mrefreshtype = Refreshtype.refresh;pagenum = 0;lastitemtime = GetCurrentTime ();// Get Data Fetchdata ();} Pull-up pulling up@overridepublic void Onpulluptorefresh (pulltorefreshbase<listview> refreshview) {// Pull add option Mrefreshtype = refreshtype.load_more;//get Data Fetchdata ();}); Actuallistview = Mlistview.getrefreshableview (); actuallistview.setfastscrollenabled (true); mEntities = new ArrayList <RankEntity> (); madapter = new Mainlistadapter (mainact.this, mentities); Actuallistview.setadapter (madapteR); if (mentities.size () = = 0) {fetchdata ();} Mlistview.setstate (State.release_to_refresh, true);
One is the wizard flow: Https://github.com/TechFreak/WizardPager This source package has been modified, only use a single radio this fragment! content more want to see the download code bar project Although very slag is not new, Completion is out of a moment of thought, after the development of their own tests are bored, more than 40 choices, point hand cramp! And then added an auto-flip switch!
APK Download: http://openbox.mobilem.360.cn/index/d/sid/2313363 source code Download: http://www.eoeandroid.com/thread-555168-1-1.html qq:471497524:519659991 New Communication Group, Welcome to Guangzhou's developers to join: Http://jq.qq.com/?_wv=1027&k=cgvXpA, another group has an HR need to find a 1 years work experience, Be able to independently develop the app Android brother, is looking for a job must add this group of the last attached:
"Android" to share a complete project for beginners!