android xml本地数据弹窗多选

                AlertDialog.Builder builderY = new AlertDialog.Builder(DepartmentManagementActivity.this);
                //    设置一个下拉的列表选择项
                builderY.setItems(getResources().getStringArray(R.array.MemberSelection), new DialogInterface.OnClickListener(){
                    @Override
                    public void onClick(DialogInterface dialog, int which){
                        switch (which) {
                            case 0://移动
                                Toast.makeText(DepartmentManagementActivity.this, "选择了:移动成员,程序哥哥正在拼命加班开发,不要着急哦~", Toast.LENGTH_SHORT).show();

                                break;
                            case 1://删除
                                Toast.makeText(DepartmentManagementActivity.this, "选择了:删除成员,做任何事情都是要一步一个脚印呢,不要着急哦~", Toast.LENGTH_SHORT).show();

                                break;
                            default:
                                break;
                        }
                    }
                });
                builderY.show();


    
        批量移动成员
        批量删除成员
    


你可能感兴趣的:(android)