Code example for RelativeLayout

Methods: requestLayoutsetGravity, getLayoutParams