On Thu, Sep 16, 2010 at 9:29 AM, Christophe
<[email protected]> wrote:
> - the javadoc for this methods say : "Create a typeface object given a
> family name, and option style information. If null is passed for the
> name, then the default font will be chosen". However if I use for
> example : Typeface.create(null, Typeface.ITALIC), it does not compile,
> with the following error : "The method create(String, int) is
> ambiguous for the type Typeface". This is because there is 2 different
> methods : create(String, int) and create(Typeface, int). I guess there
> is a problem with the API here :(

Call Typeface.create((String)null, Typeface.ITALIC);

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

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