last commit

yangyizhe_branch
eazzy 10 months ago
parent edc716f4ed
commit 3412ab3dfd

@ -373,6 +373,13 @@ public class NoteEditActivity extends Activity implements OnClickListener,
mNoteEditor.insertLink("https://github.com/wasabeef", "wasabeef");
}
});*/
/**findViewById(R.id.action_insert_image).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mNoteEditor.insertImage("https://raw.githubusercontent.com/wasabeef/art/master/chip.jpg",
"dachshund", 320);
}
});*/
findViewById(R.id.action_insert_checkbox).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
@ -392,10 +399,8 @@ public class NoteEditActivity extends Activity implements OnClickListener,
*/
private String textChange(String oriText) {
StringBuilder stringBuilder = new StringBuilder(oriText);
// 移除所有<>
removeAngleBrackets(stringBuilder);
// 移除换行符和空格
for (int i = 0; i < stringBuilder.length(); i++) {
char c = stringBuilder.charAt(i);

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

@ -597,9 +597,9 @@
android:layout_height="48dp"
android:background="@null"
android:contentDescription="@null"
android:src="@drawable/insert_image" />
android:src="@drawable/insert_image" /-->
<ImageButton
<!--ImageButton
android:id="@+id/action_insert_audio"
android:layout_width="48dp"
android:layout_height="48dp"

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="menu_voice" type="id" />
</resources>
Loading…
Cancel
Save