code: TextView generatePinText(int i, String[] titles) {
          TextView pinTitle = (TextView) LayoutInflater.from(getContext())
                  .inflate(R.layout.partial_pin_text, this, false);
          int generateViewId = PinViewUtils.generateViewId();
          pinTitle.setId(generateViewId);
          pinTitle.setText(titles[i]);
          setStylesPinTitle(pinTitle);
          pinTitlesIds[i] = generateViewId;
          return pinTitle;
      }
docs: Generate a Title {@link TextView} with all attributes to add to {@link PinView}
  
  @param i index of new Title
  @return new title