Skip to content

Commit d59f1de

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "docs: update notepad tutorial to change EditNote activity title and update codelab zip" into froyo
2 parents 80fa5c8 + a99839c commit d59f1de

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Binary file not shown.

docs/html/resources/tutorials/notepad/notepad-ex2.jd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,11 @@ case ACTIVITY_EDIT:
393393
<pre>setContentView(R.layout.note_edit);</pre>
394394
</li>
395395
<li>
396-
Find the edit and button components we need:
396+
Change the Activity title to the "Edit Note" string:
397+
<pre>setTitle(R.string.edit_note);</pre>
398+
</li>
399+
<li>
400+
Find the {@link android.widget.EditText} and {@link android.widget.Button} components we need:
397401
<p>These are found by the
398402
IDs associated to them in the R class, and need to be cast to the right
399403
type of <code>View</code> (<code>EditText</code> for the two text views,

0 commit comments

Comments
 (0)