Search in sources :

Example 1 with FragmentDemoPresentationModel

use of org.robobinding.gallery.presentationmodel.FragmentDemoPresentationModel in project RoboBinding-gallery by RoboBinding.

the class FragmentDemo method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    int productIndex = getArguments().getInt(EXTRA_PRODUCT_INDEX);
    Product product = MemoryProductStore.getInstance().getByIndex(productIndex);
    presentationModel = new FragmentDemoPresentationModel(product);
}
Also used : Product(org.robobinding.gallery.model.Product) FragmentDemoPresentationModel(org.robobinding.gallery.presentationmodel.FragmentDemoPresentationModel)

Aggregations

Product (org.robobinding.gallery.model.Product)1 FragmentDemoPresentationModel (org.robobinding.gallery.presentationmodel.FragmentDemoPresentationModel)1