As the title of the post suggest in this tutorial we will see how to have spinner widget inside the toolbar in the previous series of tutorial we have seen many example on how to set up the android spinner widget and also we have seen how to have and…
上代码: spinner = (Spinner) findViewById(R.id.spinner); tv = (TextView) findViewById(R.id.tv); final ArrayList<String> list = new ArrayList<>(); list.add("不知道"); list.add("A"); list.add("B"); list.add("AB")…
position = (Spinner)findViewById(R.id.position); String[] str = {"CEO","CFO","PM"}; ArrayAdapter aa = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item,str); position.setAdapter(aa);…