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

Android - ListView

Avatar for Paresh Mayani Paresh Mayani
September 15, 2012

Android - ListView

My session on Android - ListView in GDG Ahmedabad orientation dated on 15th September 2012.

Avatar for Paresh Mayani

Paresh Mayani

September 15, 2012
Tweet

More Decks by Paresh Mayani

Other Decks in Programming

Transcript

  1. Custom ListView http://www.TechnoTalkative.com Step 1: create XML layout for ListView.

    Step 2: Create Row file for ListView items Step 3: Create custom adapter for ListView Step 4: Create MainActivity.java file Download: http://www.technotalkative.com/android- asynchronous-image-loading-in-listview/
  2. Asynchronous image loading (Lazy loading of images) http://www.TechnoTalkative.com Download libraries

    available: 1) https://github.com/thest1/LazyList 2) Universal Image Loader for Android => https://github.com/nostra13/Android-Universal- Image-Loader 3) Novoda’s Image Loader https://github.com/novoda/ImageLoader
  3. Remember attributes http://www.TechnoTalkative.com Android listview produces black highlighting over text

    when scrolling. How to stop this? => android:cacheColorHint="@android:color/transparent” How can i display drawable or color to draw between list items? => android:divider="@android:color/transparent“ How can i increase/decrease height of the divider? android:dividerHeight="10dp“ How can i set drawable to indicate the currently selected item in the list? => android:listSelector="@android:color/transparent"