summaryrefslogtreecommitdiffstats
path: root/res/layout/main.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/layout/main.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/layout/main.xml')
-rw-r--r--res/layout/main.xml7
1 files changed, 0 insertions, 7 deletions
diff --git a/res/layout/main.xml b/res/layout/main.xml
index 925b362..42e5b78 100644
--- a/res/layout/main.xml
+++ b/res/layout/main.xml
@@ -3,13 +3,6 @@
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
- <Button
- android:id="@+id/add_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/add_button"
- android:onClick="addDVD" />
-
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"