Androidで複数選択スピナーを作成する方法を知りたいのですが、入力されるデータはデータベースからのものです。SO Android Spinner with multiple choiceでこの例を見て、それを使用しようとしましたが、次に何をすべきかわかりません。これは私のスピナーとアダプターであり、複数選択スピナーで作成したいと考えています。お願い助けて...
spn_CustomerSegment = (Spinner)findViewById(R.id.spn_CustomerSegment);
List<String> ConsumerSeg = databaseHandler.setItemOnConsumerSeg();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(IreportMain.this, android.R.layout.simple_spinner_item, ConsumerSeg);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spn_CustomerSegment.setAdapter(adapter);