protected void checkSingleChoice() {

    adapter = new SingleChoiceAdapter(items, checkedItemsPos, getActivity());
    adapter.setItemParam(
        itemTextColor,
        itemTextSize,
        itemTextStyle,
        itemTextTypeface,
        itemTextGravity,
        leftFlagSelectorId,
        rightFlagSelectorId,
        itemBackgroundSelectorId);
    adapter.setItemTextPadding(itemPaddingStart, itemPaddingTop, itemPaddingEnd, itemPaddingBottom);

    lvChoice.setAdapter(adapter);

    if (isDividerDrawable && dividerDrawable != null) {
      lvChoice.setDivider(dividerDrawable);
    } else {
      Drawable defaultDivider = getResources().getDrawable(R.drawable.list_divider);
      assert defaultDivider != null;
      defaultDivider.setColorFilter(dividerColorId, PorterDuff.Mode.SRC_ATOP);
      lvChoice.setDivider(defaultDivider);
    }
    lvChoice.setDividerHeight((int) getPX(dividerHeightDp));
  }
  @Override
  public void onClick(View view) {
    dismiss();
    if (onClickListener == null) {
      Toast.makeText(getActivity(), "onClickListener == null", Toast.LENGTH_SHORT).show();
      return;
    }
    int id = view.getId();
    int buttonId = 0;
    if (id == R.id.btnPositive) {
      buttonId = NeirDialogInterface.BUTTON_POSITIVE;
    } else if (id == R.id.btnNegative) {
      buttonId = NeirDialogInterface.BUTTON_NEGATIVE;
    } else if (id == R.id.btnNeutral) {
      buttonId = NeirDialogInterface.BUTTON_NEUTRAL;
    }

    Integer checkedPos = adapter.getCheckedItemPos();
    onClickListener.onClick(tag, buttonId, checkedPos);
  }