T
T
TaTIk942016-09-09 12:13:14
PHP
TaTIk94, 2016-09-09 12:13:14

How to fold selected items into text.?

the selected items in the list should add up to the text, but I only get one of the 2,
please help, I don’t understand where the error is ..

spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            public void onItemSelected(AdapterView<?> parent,
                                       View itemSelected, int selectedItemPosition, long selectedId) {

                String[] choose = getResources().getStringArray(R.array.animals);
                textMessage.setText(choose[selectedItemPosition]);
            }
            public void onNothingSelected(AdapterView<?> parent) {
            }
        });

        spinner1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            public void onItemSelected(AdapterView<?> parent,
                                       View itemSelected, int selectedItemPosition, long selectedId) {

                String[] choose1 = getResources().getStringArray(R.array.catlist);
                                textMessage=(choose1[selectedItemPosition]);
            }
            public void onNothingSelected(AdapterView<?> parent) {
            }
        });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NeuroPastor, 2016-07-26
@NeuroPastor

mail("to", "subj","message") doesn't work?
Then use the Yandex API for example.
In general, a rather vague question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question