Merge "docs: add developer guide cross-references, Project ACRE, Round 2" into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
471fa9d10b
@@ -54,6 +54,12 @@ import android.widget.ListView;
|
||||
* without text editors, so that it will be placed on top of the current
|
||||
* input method UI. You can modify this behavior by forcing the flag to your
|
||||
* desired mode after calling {@link #onCreate}.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about creating dialogs, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/dialogs.html">Dialogs</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public class AlertDialog extends Dialog implements DialogInterface {
|
||||
private AlertController mAlert;
|
||||
|
||||
@@ -66,9 +66,14 @@ import java.lang.ref.WeakReference;
|
||||
* your Dialog takes input focus, as it the default) with the following code:
|
||||
*
|
||||
* <pre>
|
||||
* getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
|
||||
* WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
|
||||
* </pre>
|
||||
* getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
|
||||
* WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);</pre>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about creating dialogs, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/dialogs.html">Dialogs</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public class Dialog implements DialogInterface, Window.Callback,
|
||||
KeyEvent.Callback, OnCreateContextMenuListener {
|
||||
|
||||
@@ -38,9 +38,12 @@ import java.text.NumberFormat;
|
||||
* <p>The {@link Notification.Builder Notification.Builder} has been added to make it
|
||||
* easier to construct Notifications.</p>
|
||||
*
|
||||
* <p>For a guide to creating notifications, see the
|
||||
* <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Creating Status
|
||||
* Bar Notifications</a> document in the Dev Guide.</p>
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For a guide to creating notifications, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Status Bar Notifications</a>
|
||||
* developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public class Notification implements Parcelable
|
||||
{
|
||||
|
||||
@@ -55,6 +55,13 @@ import android.util.Log;
|
||||
* You do not instantiate this class directly; instead, retrieve it through
|
||||
* {@link android.content.Context#getSystemService}.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For a guide to creating notifications, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Status Bar Notifications</a>
|
||||
* developer guide.</p>
|
||||
* </div>
|
||||
*
|
||||
* @see android.app.Notification
|
||||
* @see android.content.Context#getSystemService
|
||||
*/
|
||||
|
||||
@@ -45,9 +45,6 @@ import java.util.ArrayList;
|
||||
* multiple applications you can use a database directly via
|
||||
* {@link android.database.sqlite.SQLiteDatabase}.
|
||||
*
|
||||
* <p>For more information, read <a href="{@docRoot}guide/topics/providers/content-providers.html">Content
|
||||
* Providers</a>.</p>
|
||||
*
|
||||
* <p>When a request is made via
|
||||
* a {@link ContentResolver} the system inspects the authority of the given URI and passes the
|
||||
* request to the content provider registered with the authority. The content provider can interpret
|
||||
@@ -73,6 +70,12 @@ import java.util.ArrayList;
|
||||
* <p>Requests to {@link ContentResolver} are automatically forwarded to the appropriate
|
||||
* ContentProvider instance, so subclasses don't have to worry about the details of
|
||||
* cross-process calls.</p>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about using content providers, read the
|
||||
* <a href="{@docRoot}guide/topics/providers/content-providers.html">Content Providers</a>
|
||||
* developer guide.</p>
|
||||
*/
|
||||
public abstract class ContentProvider implements ComponentCallbacks2 {
|
||||
private static final String TAG = "ContentProvider";
|
||||
|
||||
@@ -54,6 +54,12 @@ import java.util.Random;
|
||||
|
||||
/**
|
||||
* This class provides applications access to the content model.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about using a ContentResolver with content providers, read the
|
||||
* <a href="{@docRoot}guide/topics/providers/content-providers.html">Content Providers</a>
|
||||
* developer guide.</p>
|
||||
*/
|
||||
public abstract class ContentResolver {
|
||||
/**
|
||||
|
||||
@@ -29,6 +29,12 @@ import android.widget.AdapterView;
|
||||
* To show a context menu on long click, most clients will want to call
|
||||
* {@link Activity#registerForContextMenu} and override
|
||||
* {@link Activity#onCreateContextMenu}.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For information about creating menus, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public interface ContextMenu extends Menu {
|
||||
/**
|
||||
|
||||
@@ -114,6 +114,12 @@ import android.os.Parcelable;
|
||||
* {@link android.view.DragEvent#writeToParcel(Parcel,int)}, and
|
||||
* {@link android.view.DragEvent#toString()} methods always return valid data.
|
||||
* </p>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For a guide to implementing drag and drop features, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/drag-drop.html">Drag and Drop</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public class DragEvent implements Parcelable {
|
||||
private static final boolean TRACK_RECYCLED_LOCATION = false;
|
||||
|
||||
@@ -41,6 +41,12 @@ import android.content.Intent;
|
||||
* item check marks are discouraged.
|
||||
* <li><b>Sub menus</b>: Do not support item icons, or nested sub menus.
|
||||
* </ol>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about creating menus, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public interface Menu {
|
||||
|
||||
|
||||
@@ -29,6 +29,12 @@ import android.view.View.OnCreateContextMenuListener;
|
||||
* methods.
|
||||
* <p>
|
||||
* For a feature set of specific menu types, see {@link Menu}.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For information about creating menus, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public interface MenuItem {
|
||||
/*
|
||||
|
||||
@@ -22,6 +22,12 @@ import android.graphics.drawable.Drawable;
|
||||
* Subclass of {@link Menu} for sub menus.
|
||||
* <p>
|
||||
* Sub menus do not support item icons, or nested sub menus.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For information about creating menus, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
|
||||
public interface SubMenu extends Menu {
|
||||
|
||||
@@ -418,7 +418,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||
* <h3>Drawing</h3>
|
||||
* <p>
|
||||
* Drawing is handled by walking the tree and rendering each view that
|
||||
* intersects the the invalid region. Because the tree is traversed in-order,
|
||||
* intersects the invalid region. Because the tree is traversed in-order,
|
||||
* this means that parents will draw before (i.e., behind) their children, with
|
||||
* siblings drawn in the order they appear in the tree.
|
||||
* If you set a background drawable for a View, then the View will draw it for you
|
||||
@@ -8364,7 +8364,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
||||
!((ViewGroup) mParent).isViewTransitioning(this));
|
||||
}
|
||||
/**
|
||||
* Mark the the area defined by dirty as needing to be drawn. If the view is
|
||||
* Mark the area defined by dirty as needing to be drawn. If the view is
|
||||
* visible, {@link #onDraw(android.graphics.Canvas)} will be called at some point
|
||||
* in the future. This must be called from a UI thread. To call from a non-UI
|
||||
* thread, call {@link #postInvalidate()}.
|
||||
@@ -8409,7 +8409,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark the the area defined by the rect (l,t,r,b) as needing to be drawn.
|
||||
* Mark the area defined by the rect (l,t,r,b) as needing to be drawn.
|
||||
* The coordinates of the dirty rect are relative to the view.
|
||||
* If the view is visible, {@link #onDraw(android.graphics.Canvas)}
|
||||
* will be called at some point in the future. This must be called from
|
||||
@@ -13095,6 +13095,12 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
||||
* {@link android.graphics.Canvas} object, then it calls {@link #onDrawShadow(Canvas) onDrawShadow()}
|
||||
* so that your application can draw the shadow image in the Canvas.
|
||||
* </p>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For a guide to implementing drag and drop features, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/drag-drop.html">Drag and Drop</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public static class DragShadowBuilder {
|
||||
private final WeakReference<View> mView;
|
||||
@@ -14086,6 +14092,12 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
||||
* to this view. The callback will be invoked before the hosting view's own
|
||||
* onDrag(event) method. If the listener wants to fall back to the hosting view's
|
||||
* onDrag(event) behavior, it should return 'false' from this callback.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For a guide to implementing drag and drop features, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/drag-drop.html">Drag and Drop</a> developer guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public interface OnDragListener {
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,12 @@ import java.util.HashSet;
|
||||
* Also see {@link LayoutParams} for layout attributes.
|
||||
* </p>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about creating user interface layouts, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/declaring-layout.html">XML Layouts</a> developer
|
||||
* guide.</p></div>
|
||||
*
|
||||
* @attr ref android.R.styleable#ViewGroup_clipChildren
|
||||
* @attr ref android.R.styleable#ViewGroup_clipToPadding
|
||||
* @attr ref android.R.styleable#ViewGroup_layoutAnimation
|
||||
@@ -5158,7 +5164,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
* </ul>
|
||||
* There are subclasses of LayoutParams for different subclasses of
|
||||
* ViewGroup. For example, AbsoluteLayout has its own subclass of
|
||||
* LayoutParams which adds an X and Y value.
|
||||
* LayoutParams which adds an X and Y value.</p>
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For more information about creating user interface layouts, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/declaring-layout.html">XML Layouts</a> developer
|
||||
* guide.</p></div>
|
||||
*
|
||||
* @attr ref android.R.styleable#ViewGroup_Layout_layout_height
|
||||
* @attr ref android.R.styleable#ViewGroup_Layout_layout_width
|
||||
|
||||
@@ -48,6 +48,13 @@ import android.view.accessibility.AccessibilityManager;
|
||||
* <p>
|
||||
* The easiest way to use this class is to call one of the static methods that constructs
|
||||
* everything you need and returns a new Toast object.
|
||||
*
|
||||
* <div class="special reference">
|
||||
* <h3>Developer Guides</h3>
|
||||
* <p>For information about creating Toast notifications, read the
|
||||
* <a href="{@docRoot}guide/topics/ui/notifiers/toasts.html">Toast Notifications</a> developer
|
||||
* guide.</p>
|
||||
* </div>
|
||||
*/
|
||||
public class Toast {
|
||||
static final String TAG = "Toast";
|
||||
|
||||
Reference in New Issue
Block a user