diff options
| author | 2011-07-27 11:58:10 -0700 | |
|---|---|---|
| committer | 2011-07-27 11:58:10 -0700 | |
| commit | 2e6c04b460db2cf8cd7f1e5590b1df11ca4f6253 (patch) | |
| tree | be79fb8589385dc8d3c955f6268c88b75953f0c1 | |
| parent | 20956baf92c821b631aecbd758a5c341e6990f46 (diff) | |
| parent | 2c03247b902d3ae4bc28ea5fec5fdc940e45c3a3 (diff) | |
Merge "cherrypick Change-Id: I86e18c9e5d6dd540d1d49ce6b9c038aed3b986b0 fix doc break"
| -rw-r--r-- | docs/html/guide/topics/resources/string-resource.jd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/guide/topics/resources/string-resource.jd b/docs/html/guide/topics/resources/string-resource.jd index 621771a536f5..ecd2d48a958b 100644 --- a/docs/html/guide/topics/resources/string-resource.jd +++ b/docs/html/guide/topics/resources/string-resource.jd @@ -358,10 +358,10 @@ values, with non-exhaustive examples in parentheses: <pre> int count = getNumberOfsongsAvailable(); Resources res = {@link android.content.Context#getResources()}; -String songsFound = res.{@link android.content.res.Resources#getQuantityString(int,int,int) +String songsFound = res.{@link android.content.res.Resources#getQuantityString(int,int) getQuantityString}(R.plurals.numberOfSongsAvailable, count, count); </pre> -<p>When using the {@link android.content.res.Resources#getQuantityString(int,int,int) +<p>When using the {@link android.content.res.Resources#getQuantityString(int,int) getQuantityString()} method, you need to pass the {@code count} twice if your string includes <a href="#FormattingAndStyling">string formatting</a> with a number. For example, for the string {@code %d songs found}, the first {@code count} parameter selects the appropriate plural string and |