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

ListView vs RecyclerView

ListView vs RecyclerView

If you develop on the Android platform and haven't had a chance to try out the new widgets introduced in Android L Preview this will be a very interesting presentation for you; find out from my experiments how the new RecyclerView stacks up against the view it should replace. If Android is not your game, you will still learn a few things regarding lists on mobile and what Android is like for developers on the platform.

Presented at Codecamp Iasi Autumn 2014

Andrei Diaconu

October 25, 2014
Tweet

More Decks by Andrei Diaconu

Other Decks in Programming

Transcript

  1. Echivalentul BaseAdapter MyAdapter { onCreateViewHolder(parent, viewType) { View v =

    inflate layout; ViewHolder vh = new ViewHolder(v); return vh; } onBindViewHolder(viewHolder, position) { DataItem user = data.get(position); viewHolder.text.setText(user.name); } }