Marketplace App List Sample
The built-in Marketplace app presents apps in a flat list. This example groups a set of mock items using a
MarketplaceApp class defines an app as having a name, description, image, price, and marketplace category. The marketplace category and its price are used to group a list of randomly generated
MarketplaceApp objects. First, the example briefly looks at the
MarketplaceApp class and how to generate a list of
MarketplaceApp objects; this will increase your understanding as you move further through the example.
MarketplaceApp defines an array of hard-coded categories and prices. The array of category names is called categories, and is defined as follows: