Built a view frame for MainActivity.