开发者

about string format wrong

开发者 https://www.devze.com 2023-02-18 11:35 出处:网络
Multiple annotations found at this line: - error: Multiple substitutions specified in non-positional format; did you mean to add t开发者_开发问答he formatted=\"false\"

Multiple annotations found at this line: - error: Multiple substitutions specified in non-positional format; did you mean to add t开发者_开发问答he formatted="false" attribute? - error: Unexpected end tag string

when i use string like:You have %d appointment(s)\n..and %d task(s). my sdk2.2 .i donot know why appear this mistakes.


I think it should be
You have %1$d appointment(s)\n..and %2$d task(s)

Check this out
http://groups.google.com/group/android-developers/msg/3457068e42b4c8be

0

精彩评论

暂无评论...
验证码 换一张
取 消