OSDN Git Service

Do not merge.
authorScott Main <smain@google.com>
Wed, 20 Oct 2010 00:19:03 +0000 (17:19 -0700)
committerScott Main <smain@google.com>
Wed, 20 Oct 2010 00:26:05 +0000 (17:26 -0700)
commit05523fb0b48280a5364908b00768ec71edb847a2
tree37308df1da9e729faa5c733bef13b20a6aa8515d
parent42d3a4ae1431fb3f02ac212000e8cdfb6f21e226
Do not merge.
Revise NotePad application to use better practices such as
        - 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.
        - and probably others

Change-Id: Ib7ea41079f3b268f3be1f86febdb1caed98bdd8e
34 files changed:
samples/NotePad/AndroidManifest.xml
samples/NotePad/res/drawable-hdpi-v6/app_notes.png [deleted file]
samples/NotePad/res/drawable-hdpi/app_notes.png [changed mode: 0755->0644]
samples/NotePad/res/drawable-hdpi/ic_menu_compose.png [new file with mode: 0644]
samples/NotePad/res/drawable-hdpi/ic_menu_delete.png [new file with mode: 0644]
samples/NotePad/res/drawable-hdpi/ic_menu_discard.png [new file with mode: 0644]
samples/NotePad/res/drawable-hdpi/ic_menu_edit.png [new file with mode: 0644]
samples/NotePad/res/drawable-hdpi/ic_menu_revert.png [new file with mode: 0644]
samples/NotePad/res/drawable-hdpi/ic_menu_save.png [new file with mode: 0644]
samples/NotePad/res/drawable-hdpi/live_folder_notes.png [moved from samples/NotePad/res/drawable-hdpi-v6/live_folder_notes.png with 100% similarity]
samples/NotePad/res/drawable-ldpi/app_notes.png [moved from samples/NotePad/res/drawable-ldpi-v6/app_notes.png with 100% similarity]
samples/NotePad/res/drawable-ldpi/live_folder_notes.png [moved from samples/NotePad/res/drawable-ldpi-v6/live_folder_notes.png with 100% similarity]
samples/NotePad/res/drawable-mdpi/app_notes.png [deleted file]
samples/NotePad/res/drawable-mdpi/live_folder_notes.png [deleted file]
samples/NotePad/res/drawable/app_notes.png [moved from samples/NotePad/res/drawable-mdpi-v6/app_notes.png with 100% similarity]
samples/NotePad/res/drawable/ic_menu_compose.png [new file with mode: 0644]
samples/NotePad/res/drawable/ic_menu_delete.png [new file with mode: 0755]
samples/NotePad/res/drawable/ic_menu_discard.png [new file with mode: 0644]
samples/NotePad/res/drawable/ic_menu_edit.png [new file with mode: 0755]
samples/NotePad/res/drawable/ic_menu_revert.png [new file with mode: 0644]
samples/NotePad/res/drawable/ic_menu_save.png [new file with mode: 0644]
samples/NotePad/res/drawable/live_folder_notes.png [moved from samples/NotePad/res/drawable-mdpi-v6/live_folder_notes.png with 100% similarity]
samples/NotePad/res/layout/note_editor.xml
samples/NotePad/res/layout/noteslist_item.xml
samples/NotePad/res/menu/editor_options_menu.xml [new file with mode: 0644]
samples/NotePad/res/menu/list_context_menu.xml [new file with mode: 0644]
samples/NotePad/res/menu/list_options_menu.xml [new file with mode: 0644]
samples/NotePad/res/values/strings.xml
samples/NotePad/src/com/example/android/notepad/NoteEditor.java
samples/NotePad/src/com/example/android/notepad/NotePad.java
samples/NotePad/src/com/example/android/notepad/NotePadProvider.java
samples/NotePad/src/com/example/android/notepad/NotesList.java
samples/NotePad/src/com/example/android/notepad/TitleEditor.java
samples/NotePad/src/com/google/provider/NotePad.java [deleted file]