Deleted the main activity xml layout file and started setting up the linearLayout via the mainActivity.java file.