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

From data to View

From data to View

Learn the basic needs to turn your data into views on Android.
Learn Design patterns such as Adapter and use the AdapterViews in Android to your own good.
RecyclerView intro + Intermediate is also explained here.

Yossi Elkrief

July 13, 2016
Tweet

More Decks by Yossi Elkrief

Other Decks in Programming

Transcript

  1. +Yossi Elkrief @elkriefy MaTriXy Android Group leader Tikal Knowledge Proud

    Father LFC fan GDG Beer Sheva co-founder & leader Author, Mentor, Lecturer & speaker Androids collector
  2. 3

  3. Software design pattern is a general reusable solution to a

    commonly occurring problem within a given context.
  4. Types • Algorithm strategy patterns • Computational design patterns •

    Execution patterns • Implementation strategy patterns • Structural design patterns
  5. AdapterView ViewGroups that display child views given to it by

    an adapter. An example of an AdapterView is a ListView (Old) / RecyclerView. Adapters provide the child views that display the data in the AdapterView. Adapters are responsible for supplying the data and creating the views representing each item.
  6. RecyclerView • More advanced and flexible version of ListView •

    Display large data sets very efficiently • Use when data can change at runtime.
  7. Layout Managers built-in layout managers: • LinearLayoutManager shows items in

    a vertical or horizontal scrolling list • GridLayoutManager shows items in a grid • StaggeredGridLayoutManager shows items in a staggered grid