Gave ID of uilayout to RelativeLayout.
Changed inflate menu to activity_main.