插入图片

pull/20/head
Qiu 9 months ago
parent 1b46735234
commit 83e40e5b2c

@ -6,7 +6,7 @@
</component> </component>
<component name="DBNavigator.Project.DataEditorManager"> <component name="DBNavigator.Project.DataEditorManager">
<record-view-column-sorting-type value="BY_INDEX" /> <record-view-column-sorting-type value="BY_INDEX" />
<value-preview-text-wrapping value="true" /> <value-preview-text-wrapping value="false" />
<value-preview-pinned value="false" /> <value-preview-pinned value="false" />
</component> </component>
<component name="DBNavigator.Project.DatabaseBrowserManager"> <component name="DBNavigator.Project.DatabaseBrowserManager">
@ -15,20 +15,130 @@
<show-object-properties value="true" /> <show-object-properties value="true" />
<loaded-nodes /> <loaded-nodes />
</component> </component>
<component name="DBNavigator.Project.DatabaseConsoleManager">
<connection id="f50220aa-5f42-4c28-989d-277baf604def">
<console name="note.db" type="STANDARD" schema="" session="Main"><![CDATA[select *from note]]></console>
</connection>
</component>
<component name="DBNavigator.Project.DatabaseEditorStateManager"> <component name="DBNavigator.Project.DatabaseEditorStateManager">
<last-used-providers /> <last-used-providers />
</component> </component>
<component name="DBNavigator.Project.DatabaseFileManager"> <component name="DBNavigator.Project.DatabaseFileManager">
<open-files /> <open-files />
</component> </component>
<component name="DBNavigator.Project.DatabaseSessionManager">
<connection id="f50220aa-5f42-4c28-989d-277baf604def" />
</component>
<component name="DBNavigator.Project.ExecutionManager"> <component name="DBNavigator.Project.ExecutionManager">
<retain-sticky-names value="false" /> <retain-sticky-names value="false" />
</component> </component>
<component name="DBNavigator.Project.ObjectQuickFilterManager">
<last-used-operator value="EQUAL" />
<filters />
</component>
<component name="DBNavigator.Project.ParserDiagnosticsManager"> <component name="DBNavigator.Project.ParserDiagnosticsManager">
<diagnostics-history /> <diagnostics-history />
</component> </component>
<component name="DBNavigator.Project.Settings"> <component name="DBNavigator.Project.Settings">
<connections /> <connections>
<connection id="f50220aa-5f42-4c28-989d-277baf604def" active="true" signed="true">
<database>
<name value="note.db" />
<description value="" />
<database-type value="SQLITE" />
<config-type value="BASIC" />
<database-version value="3.45" />
<driver-source value="BUNDLED" />
<driver-library value="" />
<driver value="" />
<url-type value="FILE" />
<host value="" />
<port value="" />
<database value="" />
<tns-folder value="" />
<tns-profile value="" />
<files>
<file path="D:\ASSQL\note.db" schema="main" />
</files>
<type value="NONE" />
<user value="" />
<deprecated-pwd value="" />
</database>
<properties>
<auto-commit value="false" />
</properties>
<ssh-settings>
<active value="false" />
<proxy-host value="" />
<proxy-port value="22" />
<proxy-user value="" />
<deprecated-proxy-pwd value="" />
<auth-type value="PASSWORD" />
<key-file value="" />
<key-passphrase value="" />
</ssh-settings>
<ssl-settings>
<active value="false" />
<certificate-authority-file value="" />
<client-certificate-file value="" />
<client-key-file value="" />
</ssl-settings>
<details>
<charset value="UTF-8" />
<session-management value="true" />
<ddl-file-binding value="true" />
<database-logging value="true" />
<connect-automatically value="true" />
<restore-workspace value="true" />
<restore-workspace-deep value="false" />
<environment-type value="default" />
<connectivity-timeout value="30" />
<idle-time-to-disconnect value="30" />
<idle-time-to-disconnect-pool value="5" />
<credential-expiry-time value="10" />
<max-connection-pool-size value="7" />
<alternative-statement-delimiter value="" />
</details>
<debugger>
<compile-dependencies value="true" />
<tcp-driver-tunneling value="false" />
<tcp-host-address value="" />
<tcp-port-from value="4000" />
<tcp-port-to value="4999" />
<debugger-type value="ASK" />
</debugger>
<object-filters hide-empty-schemas="false" hide-pseudo-columns="false" hide-audit-columns="false">
<object-filters />
<object-type-filter use-master-settings="true">
<object-type name="SCHEMA" enabled="true" />
<object-type name="USER" enabled="true" />
<object-type name="ROLE" enabled="true" />
<object-type name="PRIVILEGE" enabled="true" />
<object-type name="CHARSET" enabled="true" />
<object-type name="TABLE" enabled="true" />
<object-type name="VIEW" enabled="true" />
<object-type name="MATERIALIZED_VIEW" enabled="true" />
<object-type name="NESTED_TABLE" enabled="true" />
<object-type name="COLUMN" enabled="true" />
<object-type name="INDEX" enabled="true" />
<object-type name="CONSTRAINT" enabled="true" />
<object-type name="DATASET_TRIGGER" enabled="true" />
<object-type name="DATABASE_TRIGGER" enabled="true" />
<object-type name="SYNONYM" enabled="true" />
<object-type name="SEQUENCE" enabled="true" />
<object-type name="PROCEDURE" enabled="true" />
<object-type name="FUNCTION" enabled="true" />
<object-type name="PACKAGE" enabled="true" />
<object-type name="TYPE" enabled="true" />
<object-type name="TYPE_ATTRIBUTE" enabled="true" />
<object-type name="ARGUMENT" enabled="true" />
<object-type name="DIMENSION" enabled="true" />
<object-type name="CLUSTER" enabled="true" />
<object-type name="DBLINK" enabled="true" />
</object-type-filter>
</object-filters>
</connection>
</connections>
<browser-settings> <browser-settings>
<general> <general>
<display-mode value="TABBED" /> <display-mode value="TABBED" />
@ -425,4 +535,8 @@
</environment> </environment>
</general-settings> </general-settings>
</component> </component>
<component name="DBNavigator.Project.StatementExecutionManager">
<execution-variables />
<execution-variable-types />
</component>
</project> </project>

@ -1,4 +1,4 @@
#Tue Dec 17 21:23:48 CST 2024 #Wed Dec 18 09:51:50 CST 2024
net.micode.notes.app-main-7\:/drawable-hdpi/call_record.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_call_record.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/call_record.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_call_record.png.flat
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_green.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_green.9.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_green.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_green.9.png.flat
net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_yellow.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_yellow.9.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/edit_title_yellow.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_title_yellow.9.png.flat
@ -13,8 +13,8 @@ net.micode.notes.app-main-7\:/drawable-hdpi/clock.png=E\:\\xiaomi\\c_branch\\xia
net.micode.notes.app-main-7\:/drawable-hdpi/dropdown_icon.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_dropdown_icon.9.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/dropdown_icon.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_dropdown_icon.9.png.flat
net.micode.notes.app-main-7\:/drawable-hdpi/edit_green.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_green.9.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/edit_green.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_edit_green.9.png.flat
net.micode.notes.app-main-7\:/drawable-hdpi/list_white_single.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_white_single.9.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/list_white_single.9.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_list_white_single.9.png.flat
net.micode.notes.app-main-7\:/raw-zh-rCN/introduction=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\raw-zh-rCN_introduction.flat
net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_green.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_green.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/widget_2x_green.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_widget_2x_green.png.flat
net.micode.notes.app-main-7\:/raw-zh-rCN/introduction=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\raw-zh-rCN_introduction.flat
net.micode.notes.app-main-7\:/xml/preferences.xml=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\xml_preferences.xml.flat net.micode.notes.app-main-7\:/xml/preferences.xml=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\xml_preferences.xml.flat
net.micode.notes.app-main-7\:/drawable-hdpi/delete.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_delete.png.flat net.micode.notes.app-main-7\:/drawable-hdpi/delete.png=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_delete.png.flat
net.micode.notes.app-main-7\:/menu/call_record_folder.xml=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\menu_call_record_folder.xml.flat net.micode.notes.app-main-7\:/menu/call_record_folder.xml=E\:\\xiaomi\\c_branch\\xiaomi\\src\\Notes\\app\\build\\intermediates\\merged_res\\debug\\menu_call_record_folder.xml.flat

@ -1,4 +1,4 @@
#Tue Dec 17 21:23:49 CST 2024 #Wed Dec 18 09:51:54 CST 2024
path.4=15/classes.dex path.4=15/classes.dex
path.3=13/classes.dex path.3=13/classes.dex
path.2=12/classes.dex path.2=12/classes.dex

@ -15,14 +15,14 @@
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_dropdown_icon.9.png.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_dropdown_icon.9.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\dropdown_icon.9.png" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\dropdown_icon.9.png"
}, },
{
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_white.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_white.png"
},
{ {
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_list_dropdown_menu.xml.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_list_dropdown_menu.xml.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_list_dropdown_menu.xml" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_list_dropdown_menu.xml"
}, },
{
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_white.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_white.png"
},
{ {
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_blue.9.png.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_blue.9.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_blue.9.png" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_blue.9.png"
@ -135,6 +135,10 @@
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_down.9.png.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_down.9.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_down.9.png" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_down.9.png"
}, },
{
"merged": "net.micode.notes.app-merged_res-5:/layout_note_edit.xml.flat",
"source": "net.micode.notes.app-main-7:/layout/note_edit.xml"
},
{ {
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_single.9.png.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_single.9.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_single.9.png" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_single.9.png"
@ -235,10 +239,6 @@
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_new_note_pressed.png.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_new_note_pressed.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\new_note_pressed.png" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\new_note_pressed.png"
}, },
{
"merged": "net.micode.notes.app-merged_res-5:/layout_note_item.xml.flat",
"source": "net.micode.notes.app-main-7:/layout/note_item.xml"
},
{ {
"merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_small.png.flat", "merged": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_small.png.flat",
"source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_small.png" "source": "D:\\Gradle_repository\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_small.png"

@ -78,6 +78,7 @@ int drawable widget_4x_yellow 0x7f040042
int id account_dialog_subtitle 0x7f050000 int id account_dialog_subtitle 0x7f050000
int id account_dialog_title 0x7f050001 int id account_dialog_title 0x7f050001
int id action_select_all 0x7f050002 int id action_select_all 0x7f050002
int id add_img_button 0x7f050046
int id amPm 0x7f050003 int id amPm 0x7f050003
int id btn_new_note 0x7f050004 int id btn_new_note 0x7f050004
int id btn_set_bg_color 0x7f050005 int id btn_set_bg_color 0x7f050005

@ -1,24 +1,24 @@
net.micode.notes:string/preferences_toast_cannot_change_account = 0x7f0a0054
net.micode.notes:string/menu_select_none = 0x7f0a0033 net.micode.notes:string/menu_select_none = 0x7f0a0033
net.micode.notes:string/sync_progress_login = 0x7f0a005e
net.micode.notes:string/hint_foler_name = 0x7f0a001d net.micode.notes:string/hint_foler_name = 0x7f0a001d
net.micode.notes:string/info_note_enter_desktop = 0x7f0a001e
net.micode.notes:string/preferences_account_summary = 0x7f0a0044 net.micode.notes:string/preferences_account_summary = 0x7f0a0044
net.micode.notes:string/info_note_enter_desktop = 0x7f0a001e
net.micode.notes:string/ticker_cancel = 0x7f0a0060 net.micode.notes:string/ticker_cancel = 0x7f0a0060
net.micode.notes:menu/note_list = 0x7f070003 net.micode.notes:menu/note_list = 0x7f070003
net.micode.notes:string/sync_progress_login = 0x7f0a005e
net.micode.notes:string/preferences_toast_cannot_change_account = 0x7f0a0054
net.micode.notes:string/preferences_dialog_select_account_tips = 0x7f0a004c net.micode.notes:string/preferences_dialog_select_account_tips = 0x7f0a004c
net.micode.notes:style/NoteTheme = 0x7f0b0003 net.micode.notes:style/NoteTheme = 0x7f0b0003
net.micode.notes:drawable/list_yellow_single = 0x7f04002b net.micode.notes:drawable/list_yellow_single = 0x7f04002b
net.micode.notes:string/ticker_fail = 0x7f0a0061
net.micode.notes:id/amPm = 0x7f050003 net.micode.notes:id/amPm = 0x7f050003
net.micode.notes:string/ticker_fail = 0x7f0a0061
net.micode.notes:string/preferences_last_sync_time_format = 0x7f0a004f
net.micode.notes:style/TextAppearanceUnderMenuIcon = 0x7f0b000a
net.micode.notes:style/TextAppearanceMedium = 0x7f0b0005
net.micode.notes:style/TextAppearanceSuper = 0x7f0b0009
net.micode.notes:drawable/widget_4x_green = 0x7f04003f
net.micode.notes:string/success_sdcard_export = 0x7f0a005b net.micode.notes:string/success_sdcard_export = 0x7f0a005b
net.micode.notes:layout/datetime_picker = 0x7f060002 net.micode.notes:layout/datetime_picker = 0x7f060002
net.micode.notes:string/menu_select_all = 0x7f0a0032 net.micode.notes:string/menu_select_all = 0x7f0a0032
net.micode.notes:drawable/widget_4x_green = 0x7f04003f
net.micode.notes:style/TextAppearanceMedium = 0x7f0b0005
net.micode.notes:style/TextAppearanceSuper = 0x7f0b0009
net.micode.notes:string/preferences_last_sync_time_format = 0x7f0a004f
net.micode.notes:style/TextAppearanceUnderMenuIcon = 0x7f0b000a
net.micode.notes:id/widget_text = 0x7f050045 net.micode.notes:id/widget_text = 0x7f050045
net.micode.notes:string/preferences_menu_remove_account = 0x7f0a0052 net.micode.notes:string/preferences_menu_remove_account = 0x7f0a0052
net.micode.notes:string/ticker_success = 0x7f0a0062 net.micode.notes:string/ticker_success = 0x7f0a0062
@ -27,6 +27,8 @@ net.micode.notes:drawable/menu_delete = 0x7f04002d
net.micode.notes:style/HighlightTextAppearanceSecondary = 0x7f0b0001 net.micode.notes:style/HighlightTextAppearanceSecondary = 0x7f0b0001
net.micode.notes:string/menu_share = 0x7f0a0037 net.micode.notes:string/menu_share = 0x7f0a0037
net.micode.notes:string/preferences_toast_success_set_accout = 0x7f0a0055 net.micode.notes:string/preferences_toast_success_set_accout = 0x7f0a0055
net.micode.notes:string/button_delete = 0x7f0a0007
net.micode.notes:layout/settings_header = 0x7f06000b
net.micode.notes:string/ticker_syncing = 0x7f0a0063 net.micode.notes:string/ticker_syncing = 0x7f0a0063
net.micode.notes:string/preferences_dialog_change_account_warn_msg = 0x7f0a004b net.micode.notes:string/preferences_dialog_change_account_warn_msg = 0x7f0a004b
net.micode.notes:string/preferences_dialog_change_account_title = 0x7f0a004a net.micode.notes:string/preferences_dialog_change_account_title = 0x7f0a004a
@ -34,6 +36,7 @@ net.micode.notes:string/menu_font_large = 0x7f0a0027
net.micode.notes:id/tv_alert_date = 0x7f05003c net.micode.notes:id/tv_alert_date = 0x7f05003c
net.micode.notes:string/preferences_button_sync_immediately = 0x7f0a0049 net.micode.notes:string/preferences_button_sync_immediately = 0x7f0a0049
net.micode.notes:id/tv_folder_name = 0x7f05003d net.micode.notes:id/tv_folder_name = 0x7f05003d
net.micode.notes:id/add_img_button = 0x7f050046
net.micode.notes:string/preferences_menu_change_account = 0x7f0a0051 net.micode.notes:string/preferences_menu_change_account = 0x7f0a0051
net.micode.notes:string/preferences_button_sync_cancel = 0x7f0a0048 net.micode.notes:string/preferences_button_sync_cancel = 0x7f0a0048
net.micode.notes:string/preferences_account_title = 0x7f0a0045 net.micode.notes:string/preferences_account_title = 0x7f0a0045
@ -48,11 +51,13 @@ net.micode.notes:string/preferences_menu_cancel = 0x7f0a0050
net.micode.notes:string/preferences_add_account = 0x7f0a0046 net.micode.notes:string/preferences_add_account = 0x7f0a0046
net.micode.notes:string/note_link_web = 0x7f0a003f net.micode.notes:string/note_link_web = 0x7f0a003f
net.micode.notes:string/set_remind_time_message = 0x7f0a005a net.micode.notes:string/set_remind_time_message = 0x7f0a005a
net.micode.notes:menu/note_edit = 0x7f070002
net.micode.notes:layout/folder_list_item = 0x7f060004
net.micode.notes:layout/note_list = 0x7f060008 net.micode.notes:layout/note_list = 0x7f060008
net.micode.notes:drawable/font_super = 0x7f040014 net.micode.notes:drawable/font_super = 0x7f040014
net.micode.notes:string/menu_folder_view = 0x7f0a0026 net.micode.notes:string/menu_folder_view = 0x7f0a0026
net.micode.notes:menu/note_edit = 0x7f070002
net.micode.notes:layout/folder_list_item = 0x7f060004
net.micode.notes:string/format_move_notes_to_folder = 0x7f0a001c
net.micode.notes:string/alert_message_delete_folder = 0x7f0a0000
net.micode.notes:string/sync_progress_init_list = 0x7f0a005d net.micode.notes:string/sync_progress_init_list = 0x7f0a005d
net.micode.notes:string/note_link_tel = 0x7f0a003e net.micode.notes:string/note_link_tel = 0x7f0a003e
net.micode.notes:string/menu_select_title = 0x7f0a0034 net.micode.notes:string/menu_select_title = 0x7f0a0034
@ -61,9 +66,9 @@ net.micode.notes:string/menu_setting = 0x7f0a0036
net.micode.notes:id/menu_delete_remind = 0x7f050023 net.micode.notes:id/menu_delete_remind = 0x7f050023
net.micode.notes:string/error_sync_cancelled = 0x7f0a0011 net.micode.notes:string/error_sync_cancelled = 0x7f0a0011
net.micode.notes:string/menu_list_mode = 0x7f0a002c net.micode.notes:string/menu_list_mode = 0x7f0a002c
net.micode.notes:menu/call_record_folder = 0x7f070001
net.micode.notes:string/menu_sync = 0x7f0a0038 net.micode.notes:string/menu_sync = 0x7f0a0038
net.micode.notes:string/menu_font_super = 0x7f0a002b net.micode.notes:string/menu_font_super = 0x7f0a002b
net.micode.notes:menu/call_record_folder = 0x7f070001
net.micode.notes:string/menu_font_normal = 0x7f0a0028 net.micode.notes:string/menu_font_normal = 0x7f0a0028
net.micode.notes:string/menu_export_text = 0x7f0a0023 net.micode.notes:string/menu_export_text = 0x7f0a0023
net.micode.notes:string/search_hint = 0x7f0a0057 net.micode.notes:string/search_hint = 0x7f0a0057
@ -77,8 +82,6 @@ net.micode.notes:string/menu_create_folder = 0x7f0a0020
net.micode.notes:string/error_sdcard_export = 0x7f0a000f net.micode.notes:string/error_sdcard_export = 0x7f0a000f
net.micode.notes:string/datetime_dialog_ok = 0x7f0a000a net.micode.notes:string/datetime_dialog_ok = 0x7f0a000a
net.micode.notes:string/alert_message_delete_note = 0x7f0a0001 net.micode.notes:string/alert_message_delete_note = 0x7f0a0001
net.micode.notes:string/format_move_notes_to_folder = 0x7f0a001c
net.micode.notes:string/alert_message_delete_folder = 0x7f0a0000
net.micode.notes:id/move = 0x7f050030 net.micode.notes:id/move = 0x7f050030
net.micode.notes:raw/introduction = 0x7f090000 net.micode.notes:raw/introduction = 0x7f090000
net.micode.notes:id/iv_bg_red = 0x7f050012 net.micode.notes:id/iv_bg_red = 0x7f050012
@ -90,8 +93,6 @@ net.micode.notes:xml/searchable = 0x7f0c0001
net.micode.notes:drawable/widget_2x_yellow = 0x7f04003d net.micode.notes:drawable/widget_2x_yellow = 0x7f04003d
net.micode.notes:menu/note_list_options = 0x7f070005 net.micode.notes:menu/note_list_options = 0x7f070005
net.micode.notes:string/menu_font_size = 0x7f0a0029 net.micode.notes:string/menu_font_size = 0x7f0a0029
net.micode.notes:layout/settings_header = 0x7f06000b
net.micode.notes:string/button_delete = 0x7f0a0007
net.micode.notes:menu/call_note_edit = 0x7f070000 net.micode.notes:menu/call_note_edit = 0x7f070000
net.micode.notes:string/app_name = 0x7f0a0004 net.micode.notes:string/app_name = 0x7f0a0004
net.micode.notes:layout/widget_4x = 0x7f06000d net.micode.notes:layout/widget_4x = 0x7f06000d
@ -121,8 +122,8 @@ net.micode.notes:id/prefenerece_sync_status_textview = 0x7f050038
net.micode.notes:id/iv_large_select = 0x7f050018 net.micode.notes:id/iv_large_select = 0x7f050018
net.micode.notes:id/note_edit_view = 0x7f050034 net.micode.notes:id/note_edit_view = 0x7f050034
net.micode.notes:id/iv_bg_yellow_select = 0x7f050017 net.micode.notes:id/iv_bg_yellow_select = 0x7f050017
net.micode.notes:layout/note_list_dropdown_menu = 0x7f060009
net.micode.notes:string/format_date_ymd = 0x7f0a0018 net.micode.notes:string/format_date_ymd = 0x7f0a0018
net.micode.notes:layout/note_list_dropdown_menu = 0x7f060009
net.micode.notes:id/ll_font_super = 0x7f050020 net.micode.notes:id/ll_font_super = 0x7f050020
net.micode.notes:id/note_bg_color_selector = 0x7f050032 net.micode.notes:id/note_bg_color_selector = 0x7f050032
net.micode.notes:string/error_note_empty_for_send_to_desktop = 0x7f0a000d net.micode.notes:string/error_note_empty_for_send_to_desktop = 0x7f0a000d

@ -69,6 +69,7 @@ public class WorkingNote {
// 笔记设置变化监听器 // 笔记设置变化监听器
private NoteSettingChangedListener mNoteSettingStatusListener; private NoteSettingChangedListener mNoteSettingStatusListener;
// 定义一个静态数组,用于在查询时投影数据列 // 定义一个静态数组,用于在查询时投影数据列
public static final String[] DATA_PROJECTION = new String[]{ public static final String[] DATA_PROJECTION = new String[]{
DataColumns.ID, DataColumns.ID,
@ -452,6 +453,10 @@ public class WorkingNote {
} }
} }
public void setmContent(String mContent) {
this.mContent = mContent;
}
/** /**
* *
* *

@ -22,19 +22,30 @@ import android.app.AlertDialog;
import android.app.PendingIntent; import android.app.PendingIntent;
import android.app.SearchManager; import android.app.SearchManager;
import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetManager;
import android.content.ContentResolver;
import android.content.ContentUris; import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Paint; import android.graphics.Paint;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
import android.text.Editable;
import android.text.Spannable; import android.text.Spannable;
import android.text.SpannableString; import android.text.SpannableString;
import android.text.TextUtils; import android.text.TextUtils;
import android.text.format.DateUtils; import android.text.format.DateUtils;
import android.text.style.BackgroundColorSpan; import android.text.style.BackgroundColorSpan;
import android.text.style.ImageSpan;
import android.util.Log; import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.Menu; import android.view.Menu;
@ -47,6 +58,7 @@ import android.widget.CheckBox;
import android.widget.CompoundButton; import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
@ -65,6 +77,7 @@ import net.micode.notes.ui.NoteEditText.OnTextViewChangeListener;
import net.micode.notes.widget.NoteWidgetProvider_2x; import net.micode.notes.widget.NoteWidgetProvider_2x;
import net.micode.notes.widget.NoteWidgetProvider_4x; import net.micode.notes.widget.NoteWidgetProvider_4x;
import java.io.FileNotFoundException;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map; import java.util.Map;
@ -139,6 +152,8 @@ public class NoteEditActivity extends Activity implements OnClickListener,
sFontSelectorSelectionMap.put(ResourceParser.TEXT_SUPER, R.id.iv_super_select); sFontSelectorSelectionMap.put(ResourceParser.TEXT_SUPER, R.id.iv_super_select);
} }
private final int PHOTO_REQUEST=1;//图片请求
private static final String TAG = "NoteEditActivity"; // 日志标签 private static final String TAG = "NoteEditActivity"; // 日志标签
private HeadViewHolder mNoteHeaderHolder; // 头部视图的ViewHolder private HeadViewHolder mNoteHeaderHolder; // 头部视图的ViewHolder
@ -182,6 +197,17 @@ public class NoteEditActivity extends Activity implements OnClickListener,
return; return;
} }
initResources(); // 初始化资源 initResources(); // 初始化资源
final ImageButton add_img_btn = (ImageButton) findViewById(R.id.add_img_button);
add_img_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Log.d(TAG, "onClick: click add image button");
Intent loadImage = new Intent(Intent.ACTION_GET_CONTENT);
loadImage.addCategory(Intent.CATEGORY_OPENABLE);
loadImage.setType("image/*");
startActivityForResult(loadImage, PHOTO_REQUEST);
}}
);
} }
/** /**
@ -345,6 +371,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
// 显示提醒头部信息当前禁用因DateTimePicker未准备好 // 显示提醒头部信息当前禁用因DateTimePicker未准备好
showAlertHeader(); showAlertHeader();
showTopHeader(); showTopHeader();
convertToImage();
} }
/** /**
* *
@ -1058,6 +1085,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
mEditTextList.setVisibility(View.GONE); mEditTextList.setVisibility(View.GONE);
mNoteEditor.setVisibility(View.VISIBLE); mNoteEditor.setVisibility(View.VISIBLE);
} }
convertToImage();
} }
/** /**
@ -1170,4 +1198,134 @@ public class NoteEditActivity extends Activity implements OnClickListener,
Toast.makeText(this, resId, duration).show(); Toast.makeText(this, resId, duration).show();
} }
public String getPath(final Context context, final Uri uri) {
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
if (isMediaDocument(uri)) {
final String docId = DocumentsContract.getDocumentId(uri);
final String[] split = docId.split(":");
final String type = split[0];
Uri contentUri = null;
if ("image".equals(type)) {
contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
}
final String selection = "_id=?";
final String[] selectionArgs = new String[]{split[1]};
return getDataColumn(context, contentUri, selection, selectionArgs);
}
}
//Media
else if ("content".equalsIgnoreCase(uri.getScheme())) {
return getDataColumn(context, uri, null, null);
}
// File
else if ("file".equalsIgnoreCase(uri.getScheme())) {
return uri.getPath();
}
return null;
}
private void convertToImage() {
NoteEditText noteEditText = (NoteEditText) findViewById(R.id.note_edit_view);
Editable editable = noteEditText.getText();
String noteText = editable.toString();
int length = editable.length();
for(int i = 0; i < length; i++) {
for(int j = i; j < length; j++) {//通过穷尽所有可能的字符串,进行查找满足的图片路径
String img_fragment = noteText.substring(i, j+1);
if(img_fragment.length() > 15 && img_fragment.endsWith("[/local]") && img_fragment.startsWith("[local]")){
int limit = 7;
int len = img_fragment.length()-15;
String path = img_fragment.substring(limit,limit+len);
Bitmap bitmap = null;
Log.d(TAG, "图片的路径是:"+path);
try {
bitmap = BitmapFactory.decodeFile(path);
} catch (Exception e) {
e.printStackTrace();
Log.d(TAG, "图片路径不可decode且路径是"+path);
}
if(bitmap!=null){
Log.d(TAG, "图片不为null,且图片路径为:"+path);
ImageSpan imageSpan = new ImageSpan(NoteEditActivity.this, bitmap);
String ss = "[local]" + path + "[/local]";
SpannableString spannableString = new SpannableString(ss);
spannableString.setSpan(imageSpan, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
Log.d(TAG, "Create spannable string success!");
Editable edit_text = noteEditText.getEditableText();
edit_text.delete(i,i+len+15);
edit_text.insert(i, spannableString);
}
}
}
}
}
//是否为媒体文件
public boolean isMediaDocument(Uri uri) {
return "com.android.providers.media.documents".equals(uri.getAuthority());
}
public String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {
Cursor cursor = null;
final String column = "_data";
final String[] projection = {column};
try {
cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);
if (cursor != null && cursor.moveToFirst()) {
final int column_index = cursor.getColumnIndexOrThrow(column);
return cursor.getString(column_index);
}
} finally {
if (cursor != null)
cursor.close();
}
return null;
}
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);
ContentResolver resolver = getContentResolver();
switch (requestCode) {
case PHOTO_REQUEST:
Uri originalUri = intent.getData();
Bitmap bitmap = null;
try {
bitmap = BitmapFactory.decodeStream(resolver.openInputStream(originalUri));//2.解码图片
} catch (FileNotFoundException e) {
Log.d(TAG, "onActivityResult: get file_exception");
e.printStackTrace();
}
if (bitmap != null) {
Log.d(TAG, "onActivityResult: bitmap is not null");
ImageSpan imageSpan = new ImageSpan(NoteEditActivity.this, bitmap);
String path = getPath(this, originalUri);
String img_fragment = "[local]" + path + "[/local]";
SpannableString spannableString = new SpannableString(img_fragment);
spannableString.setSpan(imageSpan, 0, img_fragment.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
NoteEditText e = (NoteEditText) findViewById(R.id.note_edit_view);
int index = e.getSelectionStart();
Log.d(TAG, "Index是: " + index);
Editable edit_text = e.getEditableText();
edit_text.insert(index, spannableString);
mWorkingNote.setmContent(e.getText().toString());
ContentResolver contentResolver = getContentResolver();
ContentValues contentValues = new ContentValues();
final long id = mWorkingNote.getNoteId();
contentValues.put("snippet", mWorkingNote.getContent());
contentResolver.update(Uri.parse("content://micode_notes/note"), contentValues, "_id=?", new String[]{"" + id});
ContentValues contentValues1 = new ContentValues();
contentValues1.put("content", mWorkingNote.getContent());
contentResolver.update(Uri.parse("content://micode_notes/data"), contentValues1, "mime_type=? and note_id=?", new String[]{"vnd.android.cursor.item/text_note", "" + id});
} else {
Toast.makeText(NoteEditActivity.this, "获取图片失败", Toast.LENGTH_SHORT).show();
}
break;
default:
break;
}
}
} }

@ -52,11 +52,11 @@ public class NotesListItem extends LinearLayout {
inflate(context, R.layout.note_item, this); inflate(context, R.layout.note_item, this);
// 初始化视图组件 // 初始化视图组件
mAlert = (ImageView) findViewById(R.id.iv_alert_icon); mAlert = (ImageView) findViewById(R.id.iv_alert_icon);
mTop = (ImageView) findViewById(R.id.iv_top_icon);
mTitle = (TextView) findViewById(R.id.tv_title); mTitle = (TextView) findViewById(R.id.tv_title);
mTime = (TextView) findViewById(R.id.tv_time); mTime = (TextView) findViewById(R.id.tv_time);
mCallName = (TextView) findViewById(R.id.tv_name); mCallName = (TextView) findViewById(R.id.tv_name);
mCheckBox = (CheckBox) findViewById(android.R.id.checkbox); mCheckBox = (CheckBox) findViewById(android.R.id.checkbox);
mTop = (ImageView) findViewById(R.id.iv_top_icon);
} }
/* /*

@ -30,7 +30,11 @@
android:id="@+id/note_title" android:id="@+id/note_title"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<ImageButton
android:id="@+id/add_img_button"
android:layout_width="45dp"
android:layout_height="match_parent"
android:src="@android:drawable/ic_menu_gallery" />
<TextView <TextView
android:id="@+id/tv_modified_date" android:id="@+id/tv_modified_date"
android:layout_width="0dip" android:layout_width="0dip"

@ -18,4 +18,5 @@ allprojects {
google() google()
jcenter() jcenter()
} }
}
}
Loading…
Cancel
Save