Add setLayout() method (View class)