A layout switch with two viewing modes: grid and list. The layout is defined by a view class that gets applied to the ma