var childView2 = new View(); childView2.setSize(200, 300); childView2.setBackgroundColor(Color.BLUE);
childView1.add(button1); childView2.add(button2); Now it's time to nest the child views within the parent view. You can do this using the add method. 2.3.9 nested views codehs
var parentView = new View(); parentView.setSize(400, 300); parentView.setBackgroundColor(Color.WHITE); var childView2 = new View(); childView2
childView1.add(button1); childView2.add(button2); var childView2 = new View()
With these steps complete, you should now have a working solution to exercise 2.3.9. Here's the full code: