summaryrefslogtreecommitdiffstats
path: root/tutorials
diff options
context:
space:
mode:
authorTom O'Neill <tomo@google.com>2009-12-17 11:20:00 -0800
committerTom O'Neill <tomo@google.com>2009-12-17 11:20:00 -0800
commit1c66b17d88f4c9dc0f3e7529320f1900be2edb8b (patch)
treeb97af6f353298891d10bd58b21685a957be7f91b /tutorials
parent068f3dd6a112fe3311ace2fe98458a0176bed562 (diff)
downloadandroid_development-1c66b17d88f4c9dc0f3e7529320f1900be2edb8b.tar.gz
android_development-1c66b17d88f4c9dc0f3e7529320f1900be2edb8b.tar.bz2
android_development-1c66b17d88f4c9dc0f3e7529320f1900be2edb8b.zip
Match the tutorial documentation more closely
Just undoing some white space changes that my previous CL introduced, in order to keep the formatting the same between the tutorial documentation and the actual code.
Diffstat (limited to 'tutorials')
-rwxr-xr-xtutorials/NotepadCodeLab/Notepadv1Solution/res/layout/notes_row.xml3
-rwxr-xr-xtutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/tutorials/NotepadCodeLab/Notepadv1Solution/res/layout/notes_row.xml b/tutorials/NotepadCodeLab/Notepadv1Solution/res/layout/notes_row.xml
index f28a41bea..e405b5256 100755
--- a/tutorials/NotepadCodeLab/Notepadv1Solution/res/layout/notes_row.xml
+++ b/tutorials/NotepadCodeLab/Notepadv1Solution/res/layout/notes_row.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<TextView android:id="@+id/text1" xmlns:android="http://schemas.android.com/apk/res/android"
+<TextView android:id="@+id/text1"
+ xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
diff --git a/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java b/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
index eabb07a4e..b86478452 100755
--- a/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
+++ b/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
@@ -35,13 +35,14 @@ public class NoteEdit extends Activity {
super.onCreate(savedInstanceState);
mDbHelper = new NotesDbAdapter(this);
mDbHelper.open();
- setContentView(R.layout.note_edit);
+ setContentView(R.layout.note_edit);
mTitleText = (EditText) findViewById(R.id.title);
mBodyText = (EditText) findViewById(R.id.body);
Button confirmButton = (Button) findViewById(R.id.confirm);
+
mRowId = (savedInstanceState == null) ? null :
(Long) savedInstanceState.getSerializable(NotesDbAdapter.KEY_ROWID);
if (mRowId == null) {