[android-developers] Setting a new Typeface to all text views

2010-01-12 Thread Pixie
Hello,

I've created a custom Typeface by adding a TTF file to the assets
folder, and I use the setTypeface method to apply this font to each of
the text views, and everything works great.
The only problem I have, is that I write a lot of code lines in order
to apply this font to all text views.
Is there a way to make this font the default font in my project, or to
apply it to all text views at once?

Thanks
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Nine patch pre-scaling on Hdpi

2010-01-06 Thread Pixie
Thanks for your responses.
I know I can fix this by creating a high density image, but in the
first place, the reason I didn’t do it is because my application is
working on version 1.5, which, as you probably know, does not support
density-specific resources.
I have more than one way to solve this problem, one of them is as you
suggested, but I’m still interested to know the difference between a
regular PNG and a 9-patch PNG, when it comes to scaling up.

Thanks again


On Jan 6, 12:41 am, Dianne Hackborn  wrote:
> I would strongly recommend making density-specific resources.  Graphics
> scaled from one density to another (especially going up) are never going to
> look as good as ones designed for the density.
>
> Plus doing the pre-scaling on 9-patch images is...  interesting. :)  It's
> actually amazing to me that it works as well as it does, but it is certainly
> far from perfect.
>
>
>
> On Tue, Jan 5, 2010 at 1:48 PM, Jeffrey  wrote:
> > The easiest thing I can think of is to make high density images and
> > see if that fixes the problem. I know that fix isn't the best but it
> > might work.
>
> > On Jan 5, 7:31 am, Pixie  wrote:
> > > Hello everyone,
>
> > > I have some 9-patch images on my app, and they work great on the
> > > medium density.
> > > When I load the app on a High density emulator/device, these images
> > > look grainy.
> > > It happens only to 9-patch images. The others look great after the pre-
> > > scaling.
> > > Is there a way to make them look good after the scaling, like the
> > > non-9-patch images?
>
> > > Thanks
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Nine patch pre-scaling on Hdpi

2010-01-05 Thread Pixie
Hello everyone,

I have some 9-patch images on my app, and they work great on the
medium density.
When I load the app on a High density emulator/device, these images
look grainy.
It happens only to 9-patch images. The others look great after the pre-
scaling.
Is there a way to make them look good after the scaling, like the
non-9-patch images?

Thanks
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en