Code example for RelativeLayout

Methods: setGravity, setLayoutParams