* 实现文本复制功能
*
* @param content 复制的文本
*/
public static void copy(String content) {
if (!TextUtils.isEmpty(content)) {
ClipboardManager cmb = (ClipboardManager) CloudReaderApplication.getInstance().getSystemService(Context.CLIPBOARD_SERVICE);
cmb.setText(content.trim());
ClipData clipData = ClipData.newPlainText(null, content);
cmb.setPrimaryClip(clipData);
}
}