code: private void init() {
          this.setOrientation(LinearLayout.VERTICAL);
          mLayoutParams = new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
      }
docs: Initialize the view.