summaryrefslogtreecommitdiffstats
path: root/res/menu/add_activity.xml
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-08-08 23:05:19 +0200
committerGravatar Tom Willemsen2012-08-08 23:05:19 +0200
commite8df341197ea79776a0376fbdcce9d4360561bb5 (patch)
treeafb9f563410a0039b92f8e08f4eafff01bb5711d /res/menu/add_activity.xml
parentfa6291ef3149dbd77a1c2c326627e86c6fe6ef10 (diff)
downloaddvdroid-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/add_activity.xml')
-rw-r--r--res/menu/add_activity.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/menu/add_activity.xml b/res/menu/add_activity.xml
new file mode 100644
index 0000000..e0defc0
--- /dev/null
+++ b/res/menu/add_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/add_menu_save"
+ android:title="@string/add_menu_save"
+ android:showAsAction="ifRoom|withText" />
+</menu>