diff --git a/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.bin b/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.bin
index a1c6988..62a74e6 100644
Binary files a/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.bin and b/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.bin differ
diff --git a/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.lock b/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.lock
index 6e017ad..77dc365 100644
Binary files a/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.lock and b/src/Notes1/.gradle/7.3.3/executionHistory/executionHistory.lock differ
diff --git a/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.bin b/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.bin
index be4cb1b..8982b5b 100644
Binary files a/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.bin and b/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.bin differ
diff --git a/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.lock b/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.lock
index d9f35a3..78e796f 100644
Binary files a/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.lock and b/src/Notes1/.gradle/7.3.3/fileHashes/fileHashes.lock differ
diff --git a/src/Notes1/.gradle/7.3.3/fileHashes/resourceHashesCache.bin b/src/Notes1/.gradle/7.3.3/fileHashes/resourceHashesCache.bin
index 8f97481..34fb620 100644
Binary files a/src/Notes1/.gradle/7.3.3/fileHashes/resourceHashesCache.bin and b/src/Notes1/.gradle/7.3.3/fileHashes/resourceHashesCache.bin differ
diff --git a/src/Notes1/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/src/Notes1/.gradle/buildOutputCleanup/buildOutputCleanup.lock
index 72819d2..7320a9a 100644
Binary files a/src/Notes1/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/src/Notes1/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ
diff --git a/src/Notes1/.gradle/file-system.probe b/src/Notes1/.gradle/file-system.probe
index 30fd9fb..0014ea0 100644
Binary files a/src/Notes1/.gradle/file-system.probe and b/src/Notes1/.gradle/file-system.probe differ
diff --git a/src/Notes1/.idea/misc.xml b/src/Notes1/.idea/misc.xml
index dcdbbe6..bdcd3bf 100644
--- a/src/Notes1/.idea/misc.xml
+++ b/src/Notes1/.idea/misc.xml
@@ -6,7 +6,8 @@
-
+
+
diff --git a/src/Notes1/.idea/sonarlint/issuestore/index.pb b/src/Notes1/.idea/sonarlint/issuestore/index.pb
index 9e2a8cb..ac657ec 100644
--- a/src/Notes1/.idea/sonarlint/issuestore/index.pb
+++ b/src/Notes1/.idea/sonarlint/issuestore/index.pb
@@ -15,11 +15,5 @@ m
=app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java,f\9\f9f49497f95afd327db7a7a512612aa1089003d4
@
app/build.gradle,f\4\f4a01d6a4fcb971362ec00a83903fd3902f52164
-S
-#.idea/sonarlint/issuestore/index.pb,9\f\9fe84ebb15faf917b7def6236dba604453cc61e0
-k
-;app/src/main/java/net/micode/notes/ui/NoteEditActivity.java,5\7\577f30d26378ec8a2bd2e4a43f3c79b3f04c402c
-l
- 0) || (len < str.length())) ? str.substring(st, len) : str;
+ }
+
+ private static String trimN(String str){
+ int len = str.length();
+ int st = 0;
+ char[] val = str.toCharArray();
+ while ((st < len) && (val[st] <= '\r')) {
+ st++;
+ }
+ while ((st < len) && (val[len - 1] <= '\r')) {
+ len--;
+ }
+ return ((st > 0) || (len < str.length())) ? str.substring(st, len) : str;
+ }
+//对字符串进行操作
+ public String operateText(String str){
+ String dest = "";
+ if (str!=null) {
+ Pattern p = Pattern.compile("\\s*|t|r|n");
+ Matcher m = p.matcher(str);
+ dest = m.replaceAll("");
+ }
+ return dest;
+
+ }
+
+ public void countText(String text){
+ TextView Count = (TextView) findViewById(R.id.count_text);
+ Log.i(TAG, text);
+ Count.setText(String.valueOf(text.length()));
+ }
+
@Override
protected void onPause() {
super.onPause();
@@ -938,6 +1004,8 @@ public class NoteEditActivity extends Activity implements OnClickListener,
private boolean saveNote() {
getWorkingText();
+ //保存当前便签字符串
+
boolean saved = mWorkingNote.saveNote();
if (saved) {
/**
diff --git a/src/Notes1/app/src/main/res/layout/note_edit.xml b/src/Notes1/app/src/main/res/layout/note_edit.xml
index 2ccc786..9a71a41 100644
--- a/src/Notes1/app/src/main/res/layout/note_edit.xml
+++ b/src/Notes1/app/src/main/res/layout/note_edit.xml
@@ -69,6 +69,13 @@
android:layout_height="fill_parent"
android:orientation="vertical">
+
+