@Override
  public void onClick(View v) {
    switch (v.getId()) {
      case R.id.downloaded_cancel:
        mLinearLayout.setVisibility(View.GONE);
        mLinearLayout.setPadding(0, 0, 0, 0);
        isEditor = false;
        adapter.setEditorState(isEditor);
        break;
      case R.id.downloaded_sure:
        mLinearLayout.setVisibility(View.GONE);
        mLinearLayout.setPadding(0, 0, 0, 0);
        // Integer[] deletePositions = delList.toArray(new Integer[delList
        // .size()]);
        //
        // Log.i("DownloadedFragment", "删除位置的集合:"+str);
        delLocalFile(delList);
        isEditor = false;
        adapter.setEditorState(isEditor);
        break;

      default:
        break;
    }
  }
  // 设置编辑栏的取消和确认按钮可见
  public void setLinearLayoutVisibility(int visibility) {
    isEditor = true;
    mLinearLayout.setVisibility(visibility);
    mLinearLayout.post(
        new Runnable() {

          @Override
          public void run() {
            int marginButtomHeight = mLinearLayout.getHeight();
            lv.setPadding(0, 0, 0, marginButtomHeight);
          }
        });
    adapter.setEditorState(true);
  }