Yep, i stand corrected. It is mentioned. But only as another example. Nowhere it says that is has to be right after the '%' character.
On Dec 6, 5:23 pm, Mark Murphy <[email protected]> wrote: > On Mon, Dec 6, 2010 at 5:18 PM, Streets Of Boston > > <[email protected]> wrote: > > Also, I only found an example of the positional parameters (1$, 2$, > > etc) in an example on this page: > >http://developer.android.com/guide/topics/resources/string-resource.html. > > I assume that the format is "n$", where n is a digit (or more digits?) > > that should appear right after the '%' character. Is this correct? If > > not, where can i find more info on this particular format (the > > Formatter java-doc does not say anything about the positional > > parameters).. > > Sure it does. Sixth paragraph under Class Overview: > > "Argument index. Normally, each format specifier consumes the next > argument to format. For convenient localization, it's possible to > reorder arguments so that they appear in a different order in the > output than the order in which they were supplied. For example, "%4$s" > formats the fourth argument (4$) as a string (s)." > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

