Code example for LinearLayout

Methods: addViewsetGravity, setLayoutParams