diff options
author | Scott Main <smain@google.com> | 2012-06-23 16:34:32 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2012-06-23 16:42:33 -0700 |
commit | 40a0376ea5ac597d8df04fd3e4ad8bde7ac7c9ec (patch) | |
tree | 4c4b912d09c0f61b13b046b17acd60b0bc4a5304 | |
parent | b0efc7fce7967b043dae8896e8f9bf4d11274cf4 (diff) | |
download | frameworks_base-40a0376ea5ac597d8df04fd3e4ad8bde7ac7c9ec.zip frameworks_base-40a0376ea5ac597d8df04fd3e4ad8bde7ac7c9ec.tar.gz frameworks_base-40a0376ea5ac597d8df04fd3e4ad8bde7ac7c9ec.tar.bz2 |
docs: remove unused id attribute from Button
Change-Id: Ia61c418972699d40757923fd69ea27b26eddaa05
-rw-r--r-- | docs/html/training/basics/firstapp/building-ui.jd | 6 | ||||
-rw-r--r-- | docs/html/training/basics/firstapp/starting-activity.jd | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/html/training/basics/firstapp/building-ui.jd b/docs/html/training/basics/firstapp/building-ui.jd index df8089f..30b6529 100644 --- a/docs/html/training/basics/firstapp/building-ui.jd +++ b/docs/html/training/basics/firstapp/building-ui.jd @@ -262,7 +262,9 @@ class.</p> </pre> <p>The height and width are set to <code>"wrap_content"</code> so the button is only as big as -necessary to fit the button's text.</p> +necessary to fit the button's text. This button doesn't need the +<a href="{@docRoot}reference/android/view/View.html#attr_android:id">{@code android:id}</a> +attribute, because it won't be referenced from the activity code.</p> @@ -337,7 +339,7 @@ android.widget.LinearLayout}.</p> android:layout_width="0dp" android:layout_height="wrap_content" android:hint="@string/edit_message" /> - <Button android:id="@+id/button_send" + <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" /> diff --git a/docs/html/training/basics/firstapp/starting-activity.jd b/docs/html/training/basics/firstapp/starting-activity.jd index a8d32b6..37bc871 100644 --- a/docs/html/training/basics/firstapp/starting-activity.jd +++ b/docs/html/training/basics/firstapp/starting-activity.jd @@ -55,7 +55,7 @@ href="{@docRoot}reference/android/view/View.html#attr_android:onClick">{@code an attribute to the {@link android.widget.Button <Button>} element:</p> <pre> -<Button android:id="@+id/button_send" +<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" |