Create an xml for the note fragment and then inflated it from the class.