public class MainViewModel extends BaseObservable { private final String[] values; private final View.OnClickListener onClickListener; private String selectedText; private int selectedPosition; public MainViewModel(String[] values) { this.values = values; this.onClickListener = new View.OnClickListener() { @Override public void onClick(View v) { setSelectedPosition(0); } }; } public View.OnClickLi