From ff8ba6533e1ad27cc040851147d641d4daf18992 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Thu, 14 Jul 2011 13:56:28 -0700 Subject: cherrypick Change-Id: I90664a587b358bfebcd4b45d066726973c04fcb3 fix sdk build Change-Id: I5095cb2413abc08fbf5c8965f3f27bff2a8b2d68 --- docs/html/guide/topics/resources/string-resource.jd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/html/guide/topics/resources/string-resource.jd b/docs/html/guide/topics/resources/string-resource.jd index c8a4d8fa0aa9..621771a536f5 100644 --- a/docs/html/guide/topics/resources/string-resource.jd +++ b/docs/html/guide/topics/resources/string-resource.jd @@ -364,11 +364,10 @@ getQuantityString}(R.plurals.numberOfSongsAvailable, count, count);

When using the {@link android.content.res.Resources#getQuantityString(int,int,int) getQuantityString()} method, you need to pass the {@code count} twice if your string includes string formatting with a number. For example, for the string -{@code %d songs found}, the first {@count} parameter selects the appropriate plural string and the -second {@count} parameter is inserted into the {@code %d} placeholder. If your plural strings do not -include string formatting, you don't need to pass the third parameter to {@link -android.content.res.Resources#getQuantityString(int,int) -getQuantityString}.

+{@code %d songs found}, the first {@code count} parameter selects the appropriate plural string and +the second {@code count} parameter is inserted into the {@code %d} placeholder. If your plural +strings do not include string formatting, you don't need to pass the third parameter to {@link +android.content.res.Resources#getQuantityString(int,int) getQuantityString}.

-- cgit v1.2.3-59-g8ed1b