@Override protected void onResume() { super.onResume(); if (uexImageUtil.getCheckedItems().size() > 0) { btnRightTitle.setText( "完成(" + uexImageUtil.getCheckedItems().size() + "/" + EUEXImageConfig.getInstance().getMaxImageCount() + ")"); } }
@Override public void onClick(View v) { if (v.getId() == finder.getId("iv_left_on_title")) { setResult(Constants.OPERATION_CANCELLED, null); finish(); } else if (v.getId() == finder.getId("btn_finish_title")) { // 如果选择的图片小于最小数目,给一个提示 if (uexImageUtil.getCheckedItems().size() < EUEXImageConfig.getInstance().getMinImageCount()) { Toast.makeText( AlbumListActivity.this, String.format( finder.getString("plugin_uex_image_at_least_choose"), EUEXImageConfig.getInstance().getMinImageCount()), Toast.LENGTH_SHORT) .show(); } else { setResult(RESULT_OK, null); finish(); } } }