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);
}
Aggregations