I have a situation where a user can click a button to change the background shape of a View. There are a bunch of shapes to choose from, but for simplicity, below code is de