change wrap_content to match_parent in the parent relativelayout so that margin works properly for child elements