String str="这样写会是中文";
Pattern p = Pattern.compile("[\u4e00-\u9fa5]");
Matcher m = p.matcher(str);
if (m.find()) {
Toast.makeText(getContext(), "是中文", Toast.LENGTH_SHORT).show();
}else {
Toast.makeText(getContext(), "不是中文",Toast.LENGTH_SHORT).show();
}