Loading docs/html/training/basics/firstapp/building-ui.jd +4 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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" /> Loading docs/html/training/basics/firstapp/starting-activity.jd +1 −1 Original line number Diff line number Diff line Loading @@ -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" Loading Loading
docs/html/training/basics/firstapp/building-ui.jd +4 −2 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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" /> Loading
docs/html/training/basics/firstapp/starting-activity.jd +1 −1 Original line number Diff line number Diff line Loading @@ -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" Loading