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.
This commit is contained in:
Tom O'Neill
2009-12-17 11:20:00 -08:00
parent 068f3dd6a1
commit 1c66b17d88
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?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_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"/>

View File

@@ -35,13 +35,14 @@ public class NoteEdit extends Activity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
mDbHelper = new NotesDbAdapter(this); mDbHelper = new NotesDbAdapter(this);
mDbHelper.open(); mDbHelper.open();
setContentView(R.layout.note_edit);
setContentView(R.layout.note_edit);
mTitleText = (EditText) findViewById(R.id.title); mTitleText = (EditText) findViewById(R.id.title);
mBodyText = (EditText) findViewById(R.id.body); mBodyText = (EditText) findViewById(R.id.body);
Button confirmButton = (Button) findViewById(R.id.confirm); Button confirmButton = (Button) findViewById(R.id.confirm);
mRowId = (savedInstanceState == null) ? null : mRowId = (savedInstanceState == null) ? null :
(Long) savedInstanceState.getSerializable(NotesDbAdapter.KEY_ROWID); (Long) savedInstanceState.getSerializable(NotesDbAdapter.KEY_ROWID);
if (mRowId == null) { if (mRowId == null) {