am 7c00f816: am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev
* commit '7c00f81606de1880c3f28e54cea064c3b90da3e7': docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
This commit is contained in:
@@ -33,8 +33,8 @@ import java.util.Calendar;
|
||||
/**
|
||||
* A simple dialog containing an {@link android.widget.DatePicker}.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-datepicker.html">Date Picker
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/pickers.html">Pickers</a>
|
||||
* guide.</p>
|
||||
*/
|
||||
public class DatePickerDialog extends AlertDialog implements OnClickListener,
|
||||
OnDateChangedListener {
|
||||
|
||||
@@ -30,8 +30,8 @@ import android.widget.TimePicker.OnTimeChangedListener;
|
||||
/**
|
||||
* A dialog that prompts the user for the time of day using a {@link TimePicker}.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-timepicker.html">Time Picker
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/pickers.html">Pickers</a>
|
||||
* guide.</p>
|
||||
*/
|
||||
public class TimePickerDialog extends AlertDialog
|
||||
implements OnClickListener, OnTimeChangedListener {
|
||||
|
||||
@@ -66,8 +66,8 @@ import java.util.Map;
|
||||
* href="{@docRoot}guide/topics/manifest/manifest-element.html">{@code <manifest>}</a>
|
||||
* element.</p>
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-webview.html">Web View
|
||||
* tutorial</a>.</p>
|
||||
* <p>For more information, read
|
||||
* <a href="{@docRoot}guide/webapps/webview.html">Building Web Apps in WebView</a>.</p>
|
||||
*
|
||||
* <h3>Basic usage</h3>
|
||||
*
|
||||
|
||||
@@ -75,8 +75,8 @@ import com.android.internal.R;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-autocomplete.html">Auto Complete
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/text.html">Text Fields</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#AutoCompleteTextView_completionHint
|
||||
* @attr ref android.R.styleable#AutoCompleteTextView_completionThreshold
|
||||
|
||||
@@ -83,8 +83,8 @@ import android.widget.RemoteViews.RemoteView;
|
||||
* href="{@docRoot}guide/topics/resources/drawable-resource.html#StateList">State List
|
||||
* Drawable</a>.</p>
|
||||
*
|
||||
* <p>Also see the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a> for an example implementation of a button.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/button.html">Buttons</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* <p><strong>XML attributes</strong></p>
|
||||
* <p>
|
||||
|
||||
@@ -45,8 +45,8 @@ import android.util.ValueModel;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/checkbox.html">Checkboxes</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* <p><strong>XML attributes</strong></p>
|
||||
* <p>
|
||||
|
||||
@@ -53,8 +53,8 @@ import java.util.TimeZone;
|
||||
* displayed. Also the minimal and maximal date from which dates to be selected
|
||||
* can be customized.
|
||||
* <p>
|
||||
* See the <a href="{@docRoot}resources/tutorials/views/hello-datepicker.html">Date
|
||||
* Picker tutorial</a>.
|
||||
* See the <a href="{@docRoot}guide/topics/ui/controls/pickers.html">Pickers</a>
|
||||
* guide.
|
||||
* </p>
|
||||
* <p>
|
||||
* For a dialog using this view, see {@link android.app.DatePickerDialog}.
|
||||
|
||||
@@ -40,8 +40,8 @@ import android.view.accessibility.AccessibilityNodeInfo;
|
||||
* EditText is a thin veneer over TextView that configures itself
|
||||
* to be editable.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/text.html">Text Fields</a>
|
||||
* guide.</p>
|
||||
* <p>
|
||||
* <b>XML attributes</b>
|
||||
* <p>
|
||||
|
||||
@@ -37,8 +37,8 @@ import android.widget.RemoteViews.RemoteView;
|
||||
* A view that shows items in two-dimensional scrolling grid. The items in the
|
||||
* grid come from the {@link ListAdapter} associated with this view.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-gridview.html">Grid
|
||||
* View tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/layout/gridview.html">Grid
|
||||
* View</a> guide.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#GridView_horizontalSpacing
|
||||
* @attr ref android.R.styleable#GridView_verticalSpacing
|
||||
|
||||
@@ -64,8 +64,8 @@ import java.util.Map;
|
||||
* it will only be applied after {@code android:state_pressed} and {@code
|
||||
* android:state_focused} have both evaluated false.</p>
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/button.html">Buttons</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* <p><strong>XML attributes</strong></p>
|
||||
* <p>
|
||||
|
||||
@@ -41,8 +41,8 @@ import android.widget.RemoteViews.RemoteView;
|
||||
* {@link android.widget.LinearLayout.LayoutParams LinearLayout.LayoutParams}.
|
||||
* The default orientation is horizontal.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-linearlayout.html">Linear Layout
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/layout/linear.html">Linear Layout</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* <p>
|
||||
* Also see {@link LinearLayout.LayoutParams android.widget.LinearLayout.LayoutParams}
|
||||
|
||||
@@ -57,8 +57,8 @@ import java.util.ArrayList;
|
||||
* A view that shows items in a vertically scrolling list. The items
|
||||
* come from the {@link ListAdapter} associated with this view.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-listview.html">List View
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/layout/listview.html">List View</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#ListView_entries
|
||||
* @attr ref android.R.styleable#ListView_divider
|
||||
|
||||
@@ -38,8 +38,8 @@ import com.android.internal.R;
|
||||
* a radio group, checking one radio button unchecks all the others.</p>
|
||||
* </p>
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/radiobutton.html">Radio Buttons</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* <p><strong>XML attributes</strong></p>
|
||||
* <p>
|
||||
|
||||
@@ -43,9 +43,6 @@ import com.android.internal.R;
|
||||
* <p>
|
||||
* The secondary progress should not be modified by the client as it is used
|
||||
* internally as the background for a fractionally filled star.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a>.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#RatingBar_numStars
|
||||
* @attr ref android.R.styleable#RatingBar_rating
|
||||
|
||||
@@ -56,8 +56,8 @@ import static android.util.Log.d;
|
||||
* {@link #ALIGN_PARENT_BOTTOM}.
|
||||
* </p>
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-relativelayout.html">Relative
|
||||
* Layout tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/layout/relative.html">Relative
|
||||
* Layout</a> guide.</p>
|
||||
*
|
||||
* <p>
|
||||
* Also see {@link android.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams} for
|
||||
|
||||
@@ -39,10 +39,16 @@ import android.view.accessibility.AccessibilityNodeInfo;
|
||||
* The items in the Spinner come from the {@link Adapter} associated with
|
||||
* this view.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Spinner
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/spinner.html">Spinners</a> guide.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#Spinner_dropDownHorizontalOffset
|
||||
* @attr ref android.R.styleable#Spinner_dropDownSelector
|
||||
* @attr ref android.R.styleable#Spinner_dropDownVerticalOffset
|
||||
* @attr ref android.R.styleable#Spinner_dropDownWidth
|
||||
* @attr ref android.R.styleable#Spinner_gravity
|
||||
* @attr ref android.R.styleable#Spinner_popupBackground
|
||||
* @attr ref android.R.styleable#Spinner_prompt
|
||||
* @attr ref android.R.styleable#Spinner_spinnerMode
|
||||
*/
|
||||
@Widget
|
||||
public class Spinner extends AbsSpinner implements OnClickListener {
|
||||
@@ -409,6 +415,7 @@ public class Spinner extends AbsSpinner implements OnClickListener {
|
||||
/**
|
||||
* <p>A spinner does not support item click events. Calling this method
|
||||
* will raise an exception.</p>
|
||||
* <p>Instead use {@link AdapterView#setOnItemSelectedListener}.
|
||||
*
|
||||
* @param l this listener will be ignored
|
||||
*/
|
||||
|
||||
@@ -53,6 +53,17 @@ import com.android.internal.R;
|
||||
* {@link #setSwitchTextAppearance(android.content.Context, int) switchTextAppearance} and
|
||||
* the related seSwitchTypeface() methods control that of the thumb.
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/togglebutton.html">Toggle Buttons</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#Switch_textOn
|
||||
* @attr ref android.R.styleable#Switch_textOff
|
||||
* @attr ref android.R.styleable#Switch_switchMinWidth
|
||||
* @attr ref android.R.styleable#Switch_switchPadding
|
||||
* @attr ref android.R.styleable#Switch_switchTextAppearance
|
||||
* @attr ref android.R.styleable#Switch_thumb
|
||||
* @attr ref android.R.styleable#Switch_thumbTextPadding
|
||||
* @attr ref android.R.styleable#Switch_track
|
||||
*/
|
||||
public class Switch extends CompoundButton {
|
||||
private static final int TOUCH_MODE_IDLE = 0;
|
||||
|
||||
@@ -48,8 +48,8 @@ import java.util.Locale;
|
||||
* or 'P' to pick. For a dialog using this view, see
|
||||
* {@link android.app.TimePickerDialog}.
|
||||
*<p>
|
||||
* See the <a href="{@docRoot}resources/tutorials/views/hello-timepicker.html">Time Picker
|
||||
* tutorial</a>.
|
||||
* See the <a href="{@docRoot}guide/topics/ui/controls/pickers.html">Pickers</a>
|
||||
* guide.
|
||||
* </p>
|
||||
*/
|
||||
@Widget
|
||||
|
||||
@@ -31,8 +31,8 @@ import com.android.internal.R;
|
||||
* Displays checked/unchecked states as a button
|
||||
* with a "light" indicator and by default accompanied with the text "ON" or "OFF".
|
||||
*
|
||||
* <p>See the <a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff
|
||||
* tutorial</a>.</p>
|
||||
* <p>See the <a href="{@docRoot}guide/topics/ui/controls/togglebutton.html">Toggle Buttons</a>
|
||||
* guide.</p>
|
||||
*
|
||||
* @attr ref android.R.styleable#ToggleButton_textOn
|
||||
* @attr ref android.R.styleable#ToggleButton_textOff
|
||||
|
||||
Reference in New Issue
Block a user