There are different fonts available to use programmatically and also using the device setting, Generally programmers do use fonts in a way that keeping the font file in assets folder and then passing the font as resource to textviews.
Questions tagged [android-fonts]
362 questions
0
votes
1 answer
Android listview is not fluid when i use font from Assets
I use this code to set Roboto font to a Textview for each item if my list.
It works fine but when i scrolml the list, it's not fluid whereas with default font, the list is verry fluid when i scroll.
TextView premiereLettre = (TextView)…

wawanopoulos
- 9,614
- 31
- 111
- 166
0
votes
2 answers
Take different typeface from a ttc Android
in my application I must use a custom type of font in a file .ttc . This file conteins different type of typeface (normal, bold, ...). With this code:
textDetails.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/font.ttc"));
I can take one…

hasmet
- 758
- 3
- 13
- 32
0
votes
1 answer
How to set the custom font to dynamically created listView?
I am newbie to android. I need to set the custom font to listview?
How to set the font?
My code:
public class MainActivity extends ListActivity {
String[] presidents = { "Dwight D. Eisenhower", "John F. Kennedy",
"Lyndon B. Johnson",…

tilak
- 4,589
- 6
- 34
- 45
0
votes
2 answers
install font on android device by programming
I want to add some fonts on my android device. I know it must be rooted to install fonts. But some devices like galaxies (mine is Galaxy S II) support fonts without being root. I mean what's the way to add fonts on non-rooted devices (if…

rezam
- 627
- 1
- 12
- 17
0
votes
1 answer
Android: Usage of Roboto Light on different screens
I use the Roboto Light font in a TextView with a TextSize of 14dip. This font is very thin so that why I wonder: Is Roboto Light save to use on all screens (ldpi, mdpi, hdpi, tvdpi, xhdpi etc. etc.) or is it not suitable for low-resolution devices?

Xander
- 5,487
- 14
- 49
- 77
0
votes
2 answers
How to change the font color for custom buttons in an Android app?
I am using a custom button class to use a custom font for all the buttons in my app. I would like to change the color too but I don't know how. It is probably pretty easy but I couldn't figure it out.
Here is the code I use:
public class…

Engin Yapici
- 5,673
- 5
- 22
- 32
0
votes
4 answers
Set font size on phone and tablet
How to set the font size for a textview in a phone and a tablet. The posts I've referred suggested to creating dimen.xml and placing them in different folders namely values-mdpi,values-hdpi,values-ldpi . The tablet (1024x600) resolution picks from…

jasdmystery
- 1,742
- 1
- 19
- 31
0
votes
2 answers
How to apply Font type for a whole application in Android?
I want to apply Font type without using XML. By code, I want to change Font type and it should be able to apply for a whole application, when I click Arial else Times New Roman etc.

Achiever
- 1,626
- 10
- 30
- 54
0
votes
0 answers
Multiple language and font support in android
I am aware of Creating a new values directory for the language with the suffix of the language code. For German: values-de or French: values-fr then copy our string.xml into that and translate each entry. And this works based on the Phone…

Manjunatha b
- 11
- 6
0
votes
1 answer
How to type android robot logo
All,
I wanted to know how can we type the android logo and display it.
I went through this link http://osxdaily.com/2009/11/06/how-to-type-the-apple-logo/
But this goes for the apple one and only on a mac OS. Option + Shift + K.
I also downloaded…

dominic
- 308
- 2
- 6
- 17
0
votes
5 answers
Custom Font in Android App
I am working on an android project, the application is already built but just in order to improve the user interface. I am working on restyling the application.
For that I am also trying to use a custom font, but that is not working. I have gone…

Rookie
- 597
- 3
- 8
- 18
0
votes
2 answers
How can i use clocktopia font which is already there in my Android Device?
I have a clocktopia font on my android device and it's only on some applications.
How do I use that particular font programmatically?
Thank you.

Seph Irockthis
- 37
- 1
- 7
0
votes
2 answers
How can i set android AlertDialog items in Bangla?
Here is my sample code :
final String[] items = {"এক", "দুই", "তিন"};
builder = new AlertDialog.Builder(TestActivity.this);
builder.setItems(items,TestActivity.this);

Shahed Iqbal
- 33
- 2
-1
votes
1 answer
How do I change a Button font after it's added to a ViewGroup?
Given a Button created at runtime:
Button button = Button(context)
The way to set a custom typeface is:
button.setTypeface(myTypeface)
However I find it only works before I add it to a ViewGroup and not after.
I've also…

Barry Fruitman
- 12,316
- 13
- 72
- 135