am f0f2aba8: Merge "update notepad tutorial to change activity title in NoteEdit class" into froyo

Merge commit 'f0f2aba8925b7f88af6c3af479c560e4e6b67ee4' into gingerbread

* commit 'f0f2aba8925b7f88af6c3af479c560e4e6b67ee4':
  update notepad tutorial to change activity  title in NoteEdit class
This commit is contained in:
Scott Main
2010-07-15 11:25:07 -07:00
committed by Android Git Automerger
3 changed files with 3 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ public class NoteEdit extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.note_edit);
setTitle(R.string.edit_note);
mTitleText = (EditText) findViewById(R.id.title);
mBodyText = (EditText) findViewById(R.id.body);

View File

@@ -33,6 +33,7 @@ public class NoteEdit extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.note_edit);
setTitle(R.string.edit_note);
mTitleText = (EditText) findViewById(R.id.title);
mBodyText = (EditText) findViewById(R.id.body);

View File

@@ -37,6 +37,7 @@ public class NoteEdit extends Activity {
mDbHelper.open();
setContentView(R.layout.note_edit);
setTitle(R.string.edit_note);
mTitleText = (EditText) findViewById(R.id.title);
mBodyText = (EditText) findViewById(R.id.body);