Code example for LinearLayout

Methods: addView, setBackgroundDrawable, setLayoutParams