code: private void createView(Context context) {
          ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.pin_view, this,
                  true);
          inputMethodManager = (InputMethodManager) getContext().getSystemService(Service.INPUT_METHOD_SERVICE);
          mLinearLayoutPinTexts = (LinearLayout) findViewById(R.id.ll_pin_texts);
          mLinearLayoutPinBoxes = (LinearLayout) findViewById(R.id.ll_pin_edit_texts);
      }
docs: This method inflates the PinView
  
  @param context {@link PinViewBaseHelper} needs a context to inflate the layout