class SingleChoiceOptionItem extends OptionItem implements AdapterView.OnItemSelectedListener {

    public SingleChoiceOptionItem setLabels(final String title, final List<String> labels) {

        if (labels == null) {
            throw new IllegalArgumentException(getContext().getString(R.string.msdkui_exception_labels_null));
        }

        View.inflate(getContext(), R.layout.single_option_item, this);

        final TextView titleView = (TextView) findViewById(R.id.single_item_label);
        if (title == null) {
            titleView.setVisibility(GONE);
        } else {
            titleView.setText(title);
        }

        mTitle = title;
        mLabels = labels;

        mSpinner = (Spinner) findViewById(R.id.single_item_value);
        mSpinner.setAdapter(new ArrayAdapter<String>(getContext(), R.layout.spinner_row_item, labels));
        mSpinner.setOnItemSelectedListener(this);
        return this;
    }

    public  SingleChoiceOptionItem(final Context context);
    public  SingleChoiceOptionItem(final Context context, final AttributeSet attrs);
    public  SingleChoiceOptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr);
    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public  SingleChoiceOptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes);

}