-4
roomNames = new ArrayList<>();
ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.select_dialog_item, roomNames);
adapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);
roomSpinner.setAdapter(adapter);
if (item.getGroupId() == 0) {
/////please any one can help me how to save roomNames value in database
}
Thank you
,請閱讀以下:[第1頁](HTTP:// stackoverflow.com/help/how-to-ask)[page2](http://stackoverflow.com/help/mcve)[page3](http://stackoverflow.com/help/on-topic) –