diff --git a/src/Notes-master/res/drawable/action_bg_color.xml b/src/Notes-master/res/drawable/action_bg_color.xml
deleted file mode 100644
index 2a1d558..0000000
--- a/src/Notes-master/res/drawable/action_bg_color.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/src/Notes-master/res/layout/note_edit.xml b/src/Notes-master/res/layout/note_edit.xml
index d3842c5..52738c5 100644
--- a/src/Notes-master/res/layout/note_edit.xml
+++ b/src/Notes-master/res/layout/note_edit.xml
@@ -175,13 +175,12 @@
android:focusable="false"
android:clickable="true"/>
-
diff --git a/src/Notes-master/res/mipmap-anydpi/ic_launcher.xml b/src/Notes-master/res/mipmap-anydpi/ic_launcher.xml
deleted file mode 100644
index 6f3b755..0000000
--- a/src/Notes-master/res/mipmap-anydpi/ic_launcher.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Notes-master/res/mipmap-anydpi/ic_launcher_round.xml b/src/Notes-master/res/mipmap-anydpi/ic_launcher_round.xml
deleted file mode 100644
index 6f3b755..0000000
--- a/src/Notes-master/res/mipmap-anydpi/ic_launcher_round.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java b/src/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java
index bc48122..e2c840c 100644
--- a/src/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java
+++ b/src/Notes-master/src/net/micode/notes/ui/NoteEditActivity.java
@@ -1722,42 +1722,13 @@ public class NoteEditActivity extends Activity implements OnClickListener,
}
});
- // 背景色功能
- findViewById(R.id.action_bg_color).setOnClickListener(new View.OnClickListener() {
+ // 下划线功能
+ findViewById(R.id.action_underline).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
- mNoteEditor.focusEditor(); // 获取焦点
- new AlertDialog.Builder(NoteEditActivity.this)
- .setTitle("选择字体背景颜色")
- .setItems(new String[]{"红色", "黄色", "蓝色", "绿色", "黑色", "白色"},
- new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- switch (which) {
- case 0: // 红
- mNoteEditor.setTextBackgroundColor(Color.RED);
- break;
- case 1: // 黄
- mNoteEditor.setTextBackgroundColor(Color.YELLOW);
- break;
- case 2: // 蓝
- mNoteEditor.setTextBackgroundColor(Color.BLUE);
- break;
- case 3: // 绿
- mNoteEditor.setTextBackgroundColor(Color.GREEN);
- break;
- case 4: // 黑
- mNoteEditor.setTextBackgroundColor(Color.BLACK);
- break;
- case 5: // 白
- mNoteEditor.setTextBackgroundColor(Color.WHITE);
- break;
- }
- dialog.dismiss(); // 选择后关闭对话框
- }
- })
- .show();
+ mNoteEditor.setUnderline();
}
});
+
}
}
\ No newline at end of file