oak.viewmodel
Interface ViewModel<T>


public interface ViewModel<T>

User: evantatarka Date: 9/25/13 Time: 4:30 PM

An interface to mark a view that implements the ViewModel adapter pattern. All implementations of this must subclass an android ViewGroup class as they are expected to be inflated from xml.

You should override onFinishInflate() to get references to your children views. Then set up the display of the view in populate().


Method Summary
 void populate(T item)
          Sets the data of the view to the given item.
 

Method Detail

populate

void populate(T item)
Sets the data of the view to the given item. This is expected to be called multiple times as the view is recycled.

Parameters:
item - the item to populate the view with


Copyright © 2011-2014. All Rights Reserved.