Questions tagged [android-fonts]

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.

362 questions
-1
votes
1 answer

How to apply custom font to spinner in which i implemented using spinner adapter and list adapter here i didn't used array adapter

I didn't found any code which meets my requirement .in getview and getdropdown view i applied the font but changes were not reflected in my design please solve my problem thanks in advance. public class HintSpinnerAdapter implements SpinnerAdapter,…
-1
votes
6 answers

how to apply custom font in all of widgets in android (actionbar,drawer and any text) without using any third party library?

I want to apply custom font in whole application widget(ActionBar,Navigation Drawer,Tabs,Toolbar,Toast) text without using any third party library so how can I achieve this? any way to got this. Custom font in android application…
Vidhi Dave
  • 5,614
  • 2
  • 33
  • 55
-1
votes
1 answer

Set the output text of a button to a certain font

I am making a keyboard app (general purpose, not just for a specific textview). Currently when the user presses a key the following code happens: getCurrentInputConnection().commitText("string",1); Is there anyway I can set the font of the input…
Foobar
  • 7,458
  • 16
  • 81
  • 161
-1
votes
2 answers

what font within Android is closest to this image?

I have seen the below font used within several android applications, including Clean Master etc. What free font is closest to this image and how can I make use of it within Android? Thanks The closest (most similar) font I could find was: Roboto
user4424557
-1
votes
1 answer

change textsize in android webview

In my application I am using webview. I want to change font size in webview,so I am doing it as: WebSettings webSettings = webView.getSettings(); webSettings.setDefaultFontSize(25); But it does not reflect text size change. I also tried …
PPD
  • 5,660
  • 12
  • 52
  • 86
-1
votes
1 answer

How to Use Custom Font into Non-Activity Class in Android?

This question is very stupid, I just want to know how to use Custom font, in non-Activity class? cause I really don't know how to change font into non-activity class in android, this my case, i have class called : sma.java package…
ndr_sd
  • 115
  • 1
  • 14
-2
votes
2 answers

How to set Roboto variant font family to a Textview in android?

I have to add Roboto bold font style to my textview. How to implement that in android studio. whether I have to add font family from externally or is there an option to add that internally? I don't know what to do? Can you help me to solve this?
Sathyan
  • 138
  • 1
  • 10
-2
votes
3 answers

How to use multiple font styles in my application?

In my project I want to use Monsterrat font for my application ,In some screen I want to use Monsterrat italic ,Monsterat medium . I want to declare once and use them in whole application. I don't understand how can I do that.
Ext1 Dev
  • 33
  • 2
  • 6
-2
votes
1 answer

Android app widget, custom fonts

I have a question about widgets in android. I've created a simple digital clock with appWidgetProvider using TextClock. My question is if there's an option to use a custom font for TextClock. I used android: fontfamily, but i don't want to use…
-2
votes
2 answers

Setting font in Android

In android Using setTypeface method we can set the font to the control of our wish programmatically, but i want to know is there a way we can avoid this and set the font in layout XML file itself? I Just want to specify the path of the file & font…
Naruto
  • 9,476
  • 37
  • 118
  • 201
-2
votes
1 answer

How to change font colour black in Wifi, clock and battery icons of statusbar in android

Currently font colour of Wifi, clock and battery in statusbar(top) of android phone is white. We have a requirement to change its colour to black. It is a worklight project. Using API 19. Any idea?
sweta
  • 11
  • 1
  • 4
-2
votes
1 answer

how to add custom font to ListView in android

how i can put font in this code public class AndalosAdapter extends BaseAdapter { private Activity activity; private ArrayList> data; private static LayoutInflater…
-2
votes
4 answers

Change FontFace of application

I have one application in Which I want to change font of text in whole application. Is there anyway to change font of application Programmatically or with xml in manifest.?
Ando Masahashi
  • 3,112
  • 2
  • 24
  • 41
-3
votes
1 answer

I want to add the font settings to my edittext

I want to add text on the image. for that I want to add font settings to my text. like add color, font styles etc.. . Can any one share the code. I want exactly this kind of layout with source code:
-4
votes
2 answers

Android Studio cannot recognize .ttf files

I am trying to import font files to my project. But Android Studio doesn't recognize the files I imported. I can open these files outside Android Studio but Android Studio doesn't read them as fonts. Any reason for this?
1 2 3
24
25