code: private void inflateWidgetLayout(Context context, int layoutId) {
          inflate(context, layoutId, this);
  
          floatingLabel = (TextView) findViewById(R.id.flw_floating_label);
          if (floatingLabel == null) {
              throw new RuntimeException("Your layout must have a TextView whose ID is @id/flw_floating_label");
          }
  
          View iw = findViewById(R.id.flw_input_widget);
          if (iw == null) {
              throw new RuntimeException("Your layout must have an input widget whose ID is @id/flw_input_widget");
          }
          try {
              inputWidget = (InputWidgetT) iw;
          } catch (ClassCastException e) {
              throw new RuntimeException("The input widget is not of the expected type");
          }
      }
docs: Inflate the widget layout and make sure we have everything in there
  
  @param context  The context
  @param layoutId The id of the layout to inflate