Search in sources :

Example 1 with ContextMenuDemoPresentationModel

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

the class ContextMenuDemoActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    MemoryProductStore productStore = MemoryProductStore.getInstance();
    productStore.reset();
    presentationModel = new ContextMenuDemoPresentationModel(productStore);
    contextMenuPresentationModel = new ContextMenuPresentationModel(productStore, presentationModel);
    initializeContentView(R.layout.activity_context_menu_demo, presentationModel);
    ListView productListView = (ListView) findViewById(R.id.productList);
    registerForContextMenu(productListView);
}
Also used : MemoryProductStore(org.robobinding.gallery.model.MemoryProductStore) ContextMenuPresentationModel(org.robobinding.gallery.presentationmodel.ContextMenuPresentationModel) ListView(android.widget.ListView) ContextMenuDemoPresentationModel(org.robobinding.gallery.presentationmodel.ContextMenuDemoPresentationModel)

Aggregations

ListView (android.widget.ListView)1 MemoryProductStore (org.robobinding.gallery.model.MemoryProductStore)1 ContextMenuDemoPresentationModel (org.robobinding.gallery.presentationmodel.ContextMenuDemoPresentationModel)1 ContextMenuPresentationModel (org.robobinding.gallery.presentationmodel.ContextMenuPresentationModel)1