【问题标题】:Multiselect is not multiselect , because when i choose one it's closing多选不是多选,因为当我选择一个时它正在关闭
【发布时间】:2013-09-03 13:10:23
【问题描述】:

我有多选微调器,但是当我选择一个时微调器关闭。我想选择几件事。这是我的代码:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.search);

    ArrayList<CategorySearch> categoriesList = new ArrayList<CategorySearch>();

    categorySpinner =(Spinner)findViewById(R.id.categorySpinner);
    subCategorySpinner = (Spinner)findViewById(R.id.subCategorySpinner);

    categoriesList = populateList();

    ArrayAdapter<CategorySearch> categoriesAdapter = new ArrayAdapter<CategorySearch>(this, android.R.layout.select_dialog_multichoice, categoriesList);
    categorySpinner.setAdapter(categoriesAdapter);

当我选择一个时,列表正在关闭...之前谢谢!

【问题讨论】:

    标签: android multi-select


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2010-11-20
      • 2013-04-22
      • 1970-01-01
      • 1970-01-01
      • 2020-06-18
      • 1970-01-01
      • 2012-02-22
      • 1970-01-01
      • 2020-12-22
      相关资源
      最近更新 更多