Akash Dongre wrote:
> I am trying to have two fonts in a same ListView item, like shown in
> the following link in the first Image.
> 
> http://phandroid.com/2008/12/10/visa-launches-android-mobile-application/
> 
> I am using two TextView to have different fonts, but don't know how to
> get them together, in a ListView.

You have two options. Both involve creating your own layout file for
what a row should look like.

1. If the fonts are ones built into Android, then you can specify the
fonts in the layout file, and you can give your layout file to your
SimpleCursorAdapter.

2. If you are using TrueType fonts, or you are not using
SimpleCursorAdapter, you may need to override getView() in your adapter
and inflate/populate the rows yourself.

I have a series of blog posts on AndroidGuys describing the latter
technique:

http://androidguys.com/?s=fancy+listviews

and a blog post on how to use TrueType fonts:

http://androidguys.com/?p=656

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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