diff options
author | Tom Willemsen | 2012-08-08 22:11:12 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-08-08 22:11:12 +0200 |
commit | 9fc77db21845e2a89c03cea43228f95545c0b639 (patch) | |
tree | 54b2d4be154ddc51f84a09665d69bafcb1e99bd3 /res/layout/main.xml | |
parent | 0f2bd8ae16abe43e5f0985de8a710e8045f9b448 (diff) | |
download | dvdroid-9fc77db21845e2a89c03cea43228f95545c0b639.tar.gz dvdroid-9fc77db21845e2a89c03cea43228f95545c0b639.zip |
Separate adding of DVDs
* AndroidManifest.xml: Add `AddDVDActivity' as an activity.
* res/layout/add.xml: Layout for `AddDVDActivity'.
* res/layout/main.xml: Remove the nested `LinearLayout' and `EditText'
widgets.
* res/values/strings.xml: Change the `name_entry' hint text, add
captions for `wishlist_entry', `watched_entry' and `save_button'.
* src/ryuslash/org/dvdroid/AddDVDActivity.java: New activity.
* src/ryuslash/org/dvdroid/DVDDataSource.java (createDVD): Accept
WATCHED and WISHLIST parameters and send these to the database
instead of `0' and `1'.
* src/ryuslash/org/dvdroid/DVDroidActivity.java (addDVD): Call
`AddDVDActivity' to add a new DVD to the collection.
(onActivityResult): New override.
Diffstat (limited to 'res/layout/main.xml')
-rw-r--r-- | res/layout/main.xml | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/res/layout/main.xml b/res/layout/main.xml index f109163..925b362 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -3,23 +3,12 @@ android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> - <LinearLayout - android:orientation="horizontal" - android:layout_width="fill_parent" - android:layout_height="wrap_content"> - <EditText - android:id="@+id/name_entry" - android:layout_weight="1" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:hint="@string/name_entry" /> - <Button - android:id="@+id/add_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/add_button" - android:onClick="addDVD" /> - </LinearLayout> + <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" |