diff options
| author | Scott Main <smain@google.com> | 2010-08-19 17:37:31 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-19 17:37:31 -0700 |
| commit | 70c9ffbc838271f0ea27a4780eb146287de53ef6 (patch) | |
| tree | b4b87bd13317eb1c73411ec604b827b90d43a2d3 /docs | |
| parent | 189de2820932fd5dc98b9639fdc420a57cfa2316 (diff) | |
| parent | 11a72482a0cdc45ceaf4ca83957e682381455aee (diff) | |
| download | frameworks_base-70c9ffbc838271f0ea27a4780eb146287de53ef6.zip frameworks_base-70c9ffbc838271f0ea27a4780eb146287de53ef6.tar.gz frameworks_base-70c9ffbc838271f0ea27a4780eb146287de53ef6.tar.bz2 | |
am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo
Merge commit '11a72482a0cdc45ceaf4ca83957e682381455aee' into gingerbread
* commit '11a72482a0cdc45ceaf4ca83957e682381455aee':
docs: add links from widget classes to tutorials
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/html/resources/tutorials/views/hello-formstuff.jd | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/docs/html/resources/tutorials/views/hello-formstuff.jd b/docs/html/resources/tutorials/views/hello-formstuff.jd index 3dd5f21..b9f6c16 100644 --- a/docs/html/resources/tutorials/views/hello-formstuff.jd +++ b/docs/html/resources/tutorials/views/hello-formstuff.jd @@ -32,9 +32,19 @@ public void onCreate(Bundle savedInstanceState) { } </pre> +<p>Now select which kind of form widget you'd like to create:</p> +<ul> + <li><a href="#CustomButton">Custom Button</a></li> + <li><a href="#EditText">Edit Text</a></li> + <li><a href="#Checkbox">Checkbox</a></li> + <li><a href="#RadioButtons">Radio Buttons</a></li> + <li><a href="#ToggleButton">Toggle Button</a></li> + <li><a href="#RatingBar">Rating Bar</a></li> +</ul> -<h2>Custom Button</h2> + +<h2 id="CustomButton">Custom Button</h2> <p>In this section, you will create a button with a custom image instead of text, using the {@link android.widget.Button} widget and an XML file that defines three different images to use for the @@ -111,7 +121,8 @@ defines the action to be made when the button is clicked. In this example, a </ol> -<h2>EditText</h2> + +<h2 id="EditText">Edit Text</h2> <p>In this section, you will create a text field for user input, using the {@link android.widget.EditText} widget. Once text has been entered into the field, the "Enter" key will @@ -158,7 +169,8 @@ result in a carriage return in the text field).</p> </ol> -<h2>CheckBox</h2> + +<h2 id="Checkbox">Checkbox</h2> <p>In this section, you will create a checkbox for selecting items, using the {@link android.widget.CheckBox} widget. When the checkbox is pressed, a toast message will @@ -209,7 +221,8 @@ use the {@link android.widget.CompoundButton#setChecked(boolean)} or {@link android.widget.CompoundButton#toggle()} method.</p> -<h2>RadioButton</h2> + +<h2 id="RadioButtons">Radio Buttons</h2> <p>In this section, you will create two mutually-exclusive radio buttons (enabling one disables the other), using the {@link android.widget.RadioGroup} and {@link android.widget.RadioButton} @@ -274,7 +287,8 @@ use the {@link android.widget.CompoundButton#setChecked(boolean)} or {@link android.widget.CompoundButton#toggle()} method.</p> -<h2>ToggleButton</h2> + +<h2 id="ToggleButton">Toggle Button</h2> <p>In this section, you'll create a button used specifically for toggling between two states, using the {@link android.widget.ToggleButton} widget. This widget is an excellent @@ -330,7 +344,7 @@ android.widget.CompoundButton#toggle()} method.</p> -<h2>RatingBar</h2> +<h2 id="RatingBar">Rating Bar</h2> <p>In this section, you'll create a widget that allows the user to provide a rating, with the {@link android.widget.RatingBar} widget.</p> |
