194 Commits

Author SHA1 Message Date
Andrew Solovay
768a899f21 am b5960898: am 9562863c: doc: Updated branding guidelines per request from @deniseamling.
* commit 'b59608981ff464b85a26987b8822913e41e72291':
  doc: Updated branding guidelines per request from @deniseamling.
  Noted that OnSharedPreferenceChangeListener does not store a strong reference to the listener.
2014-05-22 22:45:06 +00:00
Andrew Solovay
de0c99e89b Noted that OnSharedPreferenceChangeListener does not store a strong reference
to the listener.

Because of this, the listener is susceptible to garbage collection unless the
caller preserves a strong reference to it. We suggest that the caller store a
reference to the listener in an instance field of an object that will exist as
long as the listener is needed.

Also fixed code sample formatting in Settings.jd (some lines were overlong).

Docs are staged in:

http://asolovay.mtv:8901/guide/topics/ui/settings.html#Listening

http://asolovay.mtv:8901/reference/android/content/SharedPreferences.html#registerOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener)

Bug: 10437648
Change-Id: I48f5b87fa2ca7a240661d0cc00114d225819d54d
2014-05-19 16:05:06 -07:00
Dirk Dougherty
0540bc373c am a4e6c7d1: am 3506ac87: Doc change: Updated content for distribute.
* commit 'a4e6c7d1d4e6c8ca2b50f91ae8881fb4838d7955':
  Doc change: Updated content for distribute.
2014-05-14 21:21:15 +00:00
Dirk Dougherty
3506ac87c0 Doc change: Updated content for distribute.
Change-Id: I612fbb8e5b7aedd73c0e633e5517bb89375760ed
2014-05-14 14:10:51 -07:00
Andrew Solovay
5119f6e6db am 3f22f22a: am bff632c8: Merge "doc: Documented how to set notification priority." into klp-docs
* commit '3f22f22aab7d641b9d56e57a2ceec6614e09a5d8':
  doc: Documented how to set notification priority.
2014-05-09 21:10:28 +00:00
Andrew Solovay
3701cbef0f doc: Documented how to set notification priority.
This is related to change http://ag/459520, where I added info about appropriate
priority constants for setPriority(int)

Doc is staged to:

http://asolovay.mtv:8998/guide/topics/ui/notifiers/notifications.html#Priority

Bug: 13514649
Change-Id: I792e2f02614c88fbcfe1b0714a9c10da27eb6c37
2014-05-08 17:58:30 -07:00
Andrew Solovay
32117212fc am 6c5bfa2f: am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit '6c5bfa2f348f1d55cbff5f8f2bd61e88ac2d01ee':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:47:50 +00:00
Andrew Solovay
026c82b191 Doc: Fixed a code sample to use standard methods. Also some formatting
tweaks.

Added blank lines for readability, and broke some long lines
so code samples don't need a scroll bar.

(Update: Fixed indentation that I broke on a code sample.)

Bug: 14045051
Change-Id: I1cf08b899ec55f9093545e71861c84120e4b56a1
2014-04-22 19:29:07 -07:00
Andrew Solovay
da1a10f727 am c68e2089: am 3555e4ae: Fixed a typo in a code sample.
* commit 'c68e2089755dc35b34d620944bcceb63e1283015':
  Fixed a typo in a code sample.
2014-04-22 13:27:09 +00:00
Andrew Solovay
3555e4aef0 Fixed a typo in a code sample.
Fix is staged to: http://asolovay.mtv.corp.google.com:9000/guide/topics/ui/actionbar.html#Dropdown

Bug: 14043905

Change-Id: I8b71d55d51bf88ab9790309e6e63e755d03b2c85
2014-04-22 00:04:39 +00:00
Scott Main
2ada4e310d am 7b0c111b: am 69e49a81: Merge "fix typos" into klp-docs
* commit '7b0c111b5f3595de5cac61b0657a6f2ecb7e77bd':
  fix typos
2014-03-11 17:43:38 +00:00
Scott Main
52d5190052 fix typos
Change-Id: I28bcbf5ae5fade081d9b71701f5568145d700e9c
2014-02-26 10:34:54 -08:00
Ricardo Cervera
afe90d8056 am 7dde7879: am 1a21c16b: Merge "docs: Fixed typo in AlertDialog code snippet." into klp-docs
* commit '7dde7879a4561a3ec9ffc48921a4d074e40aa74e':
  docs: Fixed typo in AlertDialog code snippet.
2014-01-14 09:39:29 -08:00
Ricardo Cervera
7a8acfa68e docs: Fixed typo in AlertDialog code snippet.
Bug-ID:10797361

Review URL:
http://quixote.mtv.corp.google.com:8001/guide/topics/ui/dialogs.html#AlertDialog

Change-Id: If93e140d624c2a4360a27bfae630f19fce24d7ab
2014-01-13 16:44:19 -08:00
Christopher Tate
d8ad764e85 am 4f33a5d7: am 1f835093: Merge "Remove parentheses around return statement"
* commit '4f33a5d7dd50c9ec883e0a3377327460e1df5015':
  Remove parentheses around return statement
2013-10-30 12:25:48 -07:00
Christopher Tate
4f33a5d7dd am 1f835093: Merge "Remove parentheses around return statement"
* commit '1f8350935caa6a44ef2608e34d4e3a91db4424a7':
  Remove parentheses around return statement
2013-10-30 12:22:36 -07:00
Taeho Kim
67ab4bae1d Remove parentheses around return statement
Removed parentheses around return statement in drag-n-drop sample,
which is not part of the Android style.

Change-Id: I09701829b277f2aa84b1fff1c7a8ea8241bdc578
Signed-off-by: Taeho Kim <jyte82@gmail.com>
2013-10-30 20:13:59 +09:00
Christopher Tate
989769ef95 am 94de60cc: am e431b97c: Merge "Fixed Drag-and-Drop sample code"
* commit '94de60cccc2ac971aa5a63edd1783e99956473c4':
  Fixed Drag-and-Drop sample code
2013-10-29 18:31:04 -07:00
Christopher Tate
94de60cccc am e431b97c: Merge "Fixed Drag-and-Drop sample code"
* commit 'e431b97c1f1692a42c9a348a5ff930f82eee2537':
  Fixed Drag-and-Drop sample code
2013-10-29 15:05:54 -07:00
Taeho Kim
130e1294e8 Fixed Drag-and-Drop sample code
Fixed some erros in 'Responding to drag events' sample code on
http://developer.android.com/guide/topics/ui/drag-drop.html

Changed View.OnDragEventListener to View.OnDragListener,
deleted brace start('{') after DragEvent.ACTION_DRAG_ENTERED which
does not have matching ends, and removed 'break' on each case in
swich statement which causes 'Unreachable code' error.
Added return statement at the 'default' case, so that onDrag() method
can return value in all case.

Change-Id: I7d2335f5c405626e3f0cff275b52818762c84634
Signed-off-by: Taeho Kim <jyte82@gmail.com>
2013-10-29 23:32:16 +09:00
Elliott Hughes
32393fd82a am 591e8ae3: am b4d1ad29: Merge "Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)"
* commit '591e8ae307e2faf18974254899989ca0ce31e5a5':
  Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)
2013-10-01 10:54:22 -07:00
Elliott Hughes
591e8ae307 am b4d1ad29: Merge "Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)"
* commit 'b4d1ad29c00b6d7f66192f91fcac359981102185':
  Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)
2013-10-01 10:51:22 -07:00
Taeho Kim
3d02011734 Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)
With code snippet on current docs, the accessibility service does not show up on the Settings > Accessibility > Services list, with API level 17 or higher. In order to declare service correctly, user have to declare "permission" property with value of "android.permission.BIND_ACCESSIBILITY_SERVICE".

Change-Id: I70c8f98d4ff6fd2286bf5866098b22443afb6cd9
2013-09-30 04:11:39 +09:00
David Friedman
37453a8353 Merge "Docs: Changed" into jb-mr2-docs 2013-09-27 17:25:42 +00:00
David Friedman
2e7c8e952c Docs: Changed
// Send the negative button event back to the host activity
mListener.onDialogPositiveClick(NoticeDialogFragment.this);

to

// Send the negative button event back to the host activity
mListener.onDialogNegativeClick(NoticeDialogFragment.this);

Bug: 10641712
Change-Id: Ib6af3318928c56cf9d12adbffbd7edff23f116db
2013-09-26 14:28:51 -07:00
David Friedman
e440cde0c4 Docs: "radio button"->"checkbox" in "Tip" at bottom of doc
Bug: 10641902

Change-Id: Iff5190dd5c6ce50530233f9ac7e8aed4c9b83327
2013-09-25 10:43:17 -07:00
quddusc
5a5df7f936 docs: Fixed deprecated value.
Bug: 10641906

Change-Id: I1e89e031292fb225f67c7f8a06924f29a9e950b2
2013-09-06 13:53:11 -07:00
Joe Malin
6180f104cf DOC CHANGE: Fixed bug 10210178
Change-Id: If6e955ea287e66df20a441ab44e7bd4557645348
2013-08-07 09:53:09 -07:00
Scott Main
fb56b4f799 add search suggest tags for "tabs"
Change-Id: Ic80228c1293811d85a8177c8800e7c68b84fee4e
2013-08-01 11:42:11 -07:00
Scott Main
cc0be914a9 add search suggest tags for "tabs"
Change-Id: Ic80228c1293811d85a8177c8800e7c68b84fee4e
2013-07-31 10:58:48 -07:00
Scott Main
48ebc69f4e remove obsolete/orphaned "tab layout" doc, make redirect to training lesson
Change-Id: I743be26de666c3385cca1e180da0cab13c1c6335
2013-07-31 10:48:57 -07:00
Scott Main
943895bee9 fix xml markup typo
Change-Id: If8f8c1550ea21c8bcc4fcdb90d016a4497281df7
2013-07-24 11:03:04 -07:00
Scott Main
84f2a0f5e7 revise split action bar and xml namespace
Change-Id: If60759d25ccd965dde6f3fc604af2ef1dce2053d
2013-07-24 08:13:52 -07:00
Scott Main
4e2c9dc74b update all links to the support library
Change-Id: I173e3690148e5de3020bfdca8087906faa56b13b
2013-07-23 19:37:52 -07:00
Scott Main
f213415175 api overview edits
Change-Id: I3bd4941b3d77c7bbe2c678254e336c069070363e
2013-07-23 19:19:52 -07:00
Scott Main
2edf372ed2 fix javadoc error
Change-Id: Ieae3e73cda9541e774626fbd73100cdadc1513ad
2013-07-23 13:52:05 -07:00
Scott Main
e04c454302 update action bar guide for support lib ABC
Change-Id: Ie4594b3a0e0a686ed37d858788c7c747a1ee09e0
2013-07-23 12:17:05 -07:00
Scott Main
e205386e1e am 66e965dd: am 2377da02: Merge "delete orphaned and obsolete files" into jb-mr1.1-ub-dev
* commit '66e965dd0fec17a87781821f7a360964a075f18f':
  delete orphaned and obsolete files
2013-05-20 18:53:18 -07:00
Scott Main
7bfd39a47d delete orphaned and obsolete files
Change-Id: I2e199ce5ff5c4e4c9622897eed0072c3aba02bc4
2013-05-20 18:14:42 -07:00
Scott Main
9207be9078 am b80b4bfd: am 3c8ecd30: am b2606b3f: am c98612a9: some more search tags
* commit 'b80b4bfdae8d9eb7e8ad6c7a44f92d9fd2b9e6d9':
  some more search tags
2013-05-07 10:20:58 -07:00
Scott Main
c98612a9b2 some more search tags
Change-Id: Id48d3214619e5d860e39e8f1d9d814e17956feb1
2013-05-07 10:13:07 -07:00
Scott Main
8d53821d05 am 46a1b362: am 657d7b8c: am 4f4d243d: am 64461bf4: doc tags for api guides and delete a useless file
* commit '46a1b362dbbee0feaa395e6014b8c086ed54d7e0':
  doc tags for api guides and delete a useless file
2013-04-12 10:08:06 -07:00
Scott Main
64461bf4f2 doc tags for api guides
and delete a useless file

Change-Id: If6d2b77c9a2e6d473c4a473f7bd896aa35499938
2013-04-12 09:09:46 -07:00
Scott Main
6ca3484c3f am 430e0c77: am f24a3798: am d17356b0: am f2f5b6ef: delete orphaned/redirected files
* commit '430e0c77aae517bfe45700a81251864723719827':
  delete orphaned/redirected files
2013-04-11 11:45:25 -07:00
Scott Main
f2f5b6ef98 delete orphaned/redirected files
Change-Id: I6539076edf8962fd974d790a0edd1d4badc4d5f7
2013-04-10 19:31:56 -07:00
kmccormick
fa387c5182 am 73c8a7a8: am 3789fa0f: am 8acb7166: am 8b5e342b: Merge "Doc update: clean up ubiquitous typo "the the"" into jb-mr1.1-docs
* commit '73c8a7a8200aab208abacc42a6fcbce5d3dbc1b0':
  Doc update: clean up ubiquitous typo "the the"
2013-04-03 13:54:16 -07:00
kmccormick
8b5e342b0e Merge "Doc update: clean up ubiquitous typo "the the"" into jb-mr1.1-docs 2013-04-03 20:07:53 +00:00
kmccormick
76dfc02135 Doc update: clean up ubiquitous typo "the the"
"Bug: 8531405"

Change-Id: Ib2b96dd2c1ab0f4d8abe5a8052bf2ef33f03b8be
2013-04-03 13:04:06 -07:00
Scott Kennedy
23eda7cd0a am 76f9a0a6: am c318dbcf: am 2dd01a0b: am 555c82cd: am f7c06ddb: Merge "docs: Typos and other fixes" into jb-mr1-dev
* commit '76f9a0a6800d8a8945156a95dea79f16ec704b3d':
  docs: Typos and other fixes
2013-04-03 09:35:18 -07:00
Scott Kennedy
555c82cd43 am f7c06ddb: Merge "docs: Typos and other fixes" into jb-mr1-dev
* commit 'f7c06ddbfc79921d389ed6699df17e54c428571e':
  docs: Typos and other fixes
2013-04-03 09:20:38 -07:00