Code example for Spinner

Methods: getSelectedItemPosition

            return spinner;
        public String getValue() {
            return Integer.toString(spinner.getSelectedItemPosition());
    public static class LabelInput extends PromptInput { 
        public static final String INPUT_TYPE = "label";
        public LabelInput(JSONObject obj) {
        public View getView(Context context) throws UnsupportedOperationException {
            // not really an input, but a way to add labels and such to the dialog 
            TextView view = new TextView(context);
            mView = view;
Experience pair programming with AI  Get Codota for Java