Code example for RelativeLayout

Methods: setGravity, addView, setLayoutParams