fix Avoid passing null as the view root.

Also set marginRight to the right value in message_received.xml.