diff options
author | Tom Willemsen | 2012-08-08 23:05:19 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-08-08 23:05:19 +0200 |
commit | e8df341197ea79776a0376fbdcce9d4360561bb5 (patch) | |
tree | afb9f563410a0039b92f8e08f4eafff01bb5711d /res/menu/main_activity.xml | |
parent | fa6291ef3149dbd77a1c2c326627e86c6fe6ef10 (diff) | |
download | dvdroid-e8df341197ea79776a0376fbdcce9d4360561bb5.tar.gz dvdroid-e8df341197ea79776a0376fbdcce9d4360561bb5.zip |
Use actions instead of buttons
* res/layout/add.xml: Remove save_button.
* res/layout/main.xml: Remove add_button.
* res/menu/add_activity.xml:
* res/menu/main_activity.xml: New menus.
* res/values/strings.xml: Rename `add_button' to `main_menu_add' and
`save_button' to `add_menu_save'.
* src/ryuslash/org/dvdroid/AddDVDActivity.java (createDVD): Renamed
from `saveDVD', no longer takes a `View' as an argument. Don't call
finish in this function.
(onCreateOptionsMenu):
(onOptionsItemSelected): New overrides.
* src/ryuslash/org/dvdroid/DVDroidActivity.java (onCreateOptionsMenu):
(onOptionsItemsSelected): New overrides.
(showAddDVD): Renamed from `addDVD', no longer takes a `View' as an
argument.
Diffstat (limited to 'res/menu/main_activity.xml')
-rw-r--r-- | res/menu/main_activity.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/res/menu/main_activity.xml b/res/menu/main_activity.xml new file mode 100644 index 0000000..ce1512b --- /dev/null +++ b/res/menu/main_activity.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/main_menu_add" + android:title="@string/main_menu_add" + android:showAsAction="ifRoom|withText" /> +</menu> |