Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lazy Android Developers - Be Productive

Lazy Android Developers - Be Productive

Lazy Android Developers - Be Productive. Talk delivered at Android Developer Days, Ankara on 17th May, 2014.

Paresh Mayani

May 16, 2014

Transcript

56 slides
  1. IDE

  2. UI & Custom Views Custom Views • Crouton • Staggered

    GridView • GoogleProgressBar • Sticky List Headers • Card UI • Fading ActionBar • Swipe ListView
  3. Networking REST Clients • Spring for Android • Retrofit Async

    Requests • OKHttp • Volley Image source: http://instructure.github.io/blog/2013/12/09/volley-vs-retrofit/
  4. Asynchronous Image Loading • Picasso • Universal Image loader (Nostra)

    • UrlImageViewHelper & ion (Koush) http://www.technotalkative.com/lazy-productive-android-developer-part-5-image-loading-library/
  5. Dependency Injection Class • Dagger View Injection • Butter Knife

    Universal • RoboGuice • Android Annotations (AA)
  6. Example //Before using Android annotation library public class ActivityWithoutAA extends

    Activity{ Button button1; ImageView imgView1; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button1 = (Button) findViewById(R.id.button1); imgView1 = (ImageView) findViewById(R.id.imageView1); button1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub imgView1.setImageResource(R.drawable.ic_launcher);} }); } }
  7. Example //After using Android annotation library, result is less code.

    @EActivity(R.layout.activity_main) public class MainActivity extends Activity { @ViewById Button button1; @ViewById ImageView imageView1; @Click void button1() { imageView1.setImageResource(R.drawable.ic_launcher); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } } View Initialization Click Listener

More Decks by Paresh Mayani

Other Decks in Technology