Skip to content

Commit 558459f

Browse files
committed
docs: add developer guide cross-references, Project ACRE, Round 2
Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
1 parent f838b7c commit 558459f

File tree

14 files changed

+104
-13
lines changed

14 files changed

+104
-13
lines changed

core/java/android/app/AlertDialog.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
* without text editors, so that it will be placed on top of the current
5555
* input method UI. You can modify this behavior by forcing the flag to your
5656
* desired mode after calling {@link #onCreate}.
57+
*
58+
* <div class="special reference">
59+
* <h3>Developer Guides</h3>
60+
* <p>For more information about creating dialogs, read the
61+
* <a href="{@docRoot}guide/topics/ui/dialogs.html">Dialogs</a> developer guide.</p>
62+
* </div>
5763
*/
5864
public class AlertDialog extends Dialog implements DialogInterface {
5965
private AlertController mAlert;

core/java/android/app/Dialog.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,14 @@
6666
* your Dialog takes input focus, as it the default) with the following code:
6767
*
6868
* <pre>
69-
* getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
70-
* WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
71-
* </pre>
69+
* getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,
70+
* WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);</pre>
71+
*
72+
* <div class="special reference">
73+
* <h3>Developer Guides</h3>
74+
* <p>For more information about creating dialogs, read the
75+
* <a href="{@docRoot}guide/topics/ui/dialogs.html">Dialogs</a> developer guide.</p>
76+
* </div>
7277
*/
7378
public class Dialog implements DialogInterface, Window.Callback,
7479
KeyEvent.Callback, OnCreateContextMenuListener {

core/java/android/app/Notification.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@
3838
* <p>The {@link Notification.Builder Notification.Builder} has been added to make it
3939
* easier to construct Notifications.</p>
4040
*
41-
* <p>For a guide to creating notifications, see the
42-
* <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Creating Status
43-
* Bar Notifications</a> document in the Dev Guide.</p>
41+
* <div class="special reference">
42+
* <h3>Developer Guides</h3>
43+
* <p>For a guide to creating notifications, read the
44+
* <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Status Bar Notifications</a>
45+
* developer guide.</p>
46+
* </div>
4447
*/
4548
public class Notification implements Parcelable
4649
{

core/java/android/app/NotificationManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
* You do not instantiate this class directly; instead, retrieve it through
5656
* {@link android.content.Context#getSystemService}.
5757
*
58+
* <div class="special reference">
59+
* <h3>Developer Guides</h3>
60+
* <p>For a guide to creating notifications, read the
61+
* <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Status Bar Notifications</a>
62+
* developer guide.</p>
63+
* </div>
64+
*
5865
* @see android.app.Notification
5966
* @see android.content.Context#getSystemService
6067
*/

core/java/android/content/ContentProvider.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@
4545
* multiple applications you can use a database directly via
4646
* {@link android.database.sqlite.SQLiteDatabase}.
4747
*
48-
* <p>For more information, read <a href="{@docRoot}guide/topics/providers/content-providers.html">Content
49-
* Providers</a>.</p>
50-
*
5148
* <p>When a request is made via
5249
* a {@link ContentResolver} the system inspects the authority of the given URI and passes the
5350
* request to the content provider registered with the authority. The content provider can interpret
@@ -73,6 +70,12 @@
7370
* <p>Requests to {@link ContentResolver} are automatically forwarded to the appropriate
7471
* ContentProvider instance, so subclasses don't have to worry about the details of
7572
* cross-process calls.</p>
73+
*
74+
* <div class="special reference">
75+
* <h3>Developer Guides</h3>
76+
* <p>For more information about using content providers, read the
77+
* <a href="{@docRoot}guide/topics/providers/content-providers.html">Content Providers</a>
78+
* developer guide.</p>
7679
*/
7780
public abstract class ContentProvider implements ComponentCallbacks2 {
7881
private static final String TAG = "ContentProvider";

core/java/android/content/ContentResolver.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454

5555
/**
5656
* This class provides applications access to the content model.
57+
*
58+
* <div class="special reference">
59+
* <h3>Developer Guides</h3>
60+
* <p>For more information about using a ContentResolver with content providers, read the
61+
* <a href="{@docRoot}guide/topics/providers/content-providers.html">Content Providers</a>
62+
* developer guide.</p>
5763
*/
5864
public abstract class ContentResolver {
5965
/**

core/java/android/view/ContextMenu.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
* To show a context menu on long click, most clients will want to call
3030
* {@link Activity#registerForContextMenu} and override
3131
* {@link Activity#onCreateContextMenu}.
32+
*
33+
* <div class="special reference">
34+
* <h3>Developer Guides</h3>
35+
* <p>For information about creating menus, read the
36+
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
37+
* </div>
3238
*/
3339
public interface ContextMenu extends Menu {
3440
/**

core/java/android/view/DragEvent.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@
114114
* {@link android.view.DragEvent#writeToParcel(Parcel,int)}, and
115115
* {@link android.view.DragEvent#toString()} methods always return valid data.
116116
* </p>
117+
*
118+
* <div class="special reference">
119+
* <h3>Developer Guides</h3>
120+
* <p>For a guide to implementing drag and drop features, read the
121+
* <a href="{@docRoot}guide/topics/ui/drag-drop.html">Drag and Drop</a> developer guide.</p>
122+
* </div>
117123
*/
118124
public class DragEvent implements Parcelable {
119125
private static final boolean TRACK_RECYCLED_LOCATION = false;

core/java/android/view/Menu.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
* item check marks are discouraged.
4242
* <li><b>Sub menus</b>: Do not support item icons, or nested sub menus.
4343
* </ol>
44+
*
45+
* <div class="special reference">
46+
* <h3>Developer Guides</h3>
47+
* <p>For more information about creating menus, read the
48+
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
49+
* </div>
4450
*/
4551
public interface Menu {
4652

core/java/android/view/MenuItem.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
* methods.
3030
* <p>
3131
* For a feature set of specific menu types, see {@link Menu}.
32+
*
33+
* <div class="special reference">
34+
* <h3>Developer Guides</h3>
35+
* <p>For information about creating menus, read the
36+
* <a href="{@docRoot}guide/topics/ui/menus.html">Menus</a> developer guide.</p>
37+
* </div>
3238
*/
3339
public interface MenuItem {
3440
/*

0 commit comments

Comments
 (0)