Which includes the following:
- inflating menus from XML and supporting API Level 3 without the need
for version qualifiers on resource directories.
- to NOT include items in the options menu based on the 'selected' item
(that's what a context menu is for).
- include all drawables in the app, instead of using system resources.
Add features:
- the ability to edit the note title through the context menu
- disable menu items in the editor based on menu groups
- add a "save" button to the editor instead of assuming BACK functionality
- and show the title of the current note in the activity title.
Plus, this change adds Holo themes and items to the action bar.
And fix a bug in NoteEditor: the constants used for the column indexes caused the title
and note text to be saved incorrectly---removed them and instead perform column index
lookup on the notes cursor.
Change-Id: I6e7a693a35f5dc2da423982869dd871c4c171e5b
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2007 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<resources>
|
|
<string name="app_name">NotePad</string>
|
|
<string name="live_folder_name">Notes</string>
|
|
|
|
<string name="title_edit_title">Note title:</string>
|
|
<string name="title_create">New note</string>
|
|
<string name="title_edit">Edit: %1$s</string>
|
|
<string name="title_notes_list">Notes</string>
|
|
|
|
<string name="menu_add">New note</string>
|
|
<string name="menu_save">Save</string>
|
|
<string name="menu_delete">Delete</string>
|
|
<string name="menu_open">Open</string>
|
|
<string name="menu_revert">Revert changes</string>
|
|
<string name="menu_copy">Copy</string>
|
|
<string name="menu_paste">Paste</string>
|
|
|
|
<string name="button_ok">OK</string>
|
|
<string name="text_title">Title:</string>
|
|
|
|
<string name="resolve_edit">Edit note</string>
|
|
<string name="resolve_title">Edit title</string>
|
|
|
|
<string name="error_title">Error</string>
|
|
<string name="error_message">Error loading note</string>
|
|
<string name="nothing_to_save">There is nothing to save</string>
|
|
</resources> |