There is public String getString(int id, Object... formatArgs), but this is
built in top of the standard Java String.format(), which can only deal with
raw text (it doesn't know about Android styles), so it can't return a styled
string.

On Thu, Aug 6, 2009 at 10:39 AM, skink <[email protected]> wrote:

>
> hi,
>
> why there is no Resources.getText(int, Object...) method so that i can
> use it with spanned text defined in strings.xml as:
>
> hello <b>%s</b>
>
> i know that i can define it as:
>
> hello &lt;b&gt;%s&lt;/b&gt;
>
> and then use Resources.getstring(int, Object...) and then Html.fromHtml
> () but it is so weird...
>
> thanks
> pskink
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to