Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8842615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:00:17+00:00 2026-06-14T11:00:17+00:00

With 4.1 jellybean, Robot has started to make appearances throughout the system UI. I

  • 0

With 4.1 jellybean, Robot has started to make appearances throughout the system UI. I would like to use the new attribute ‘fontFamily’ within Eclipse as documented in the Font Families section of this page:
http://developer.android.com/about/versions/android-4.1.html#UI

The goal would be to use Roboto on all devices that support it (without including it in /assets) and have the typeface degrade gracefully to Droid sans on all non 4.0+ devices. Again, don’t want to have to include in my .apk, understand that is easy enough to do.

Would love to see sample code or feedback on successful use of fontFamily with API 16.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:00:19+00:00Added an answer on June 14, 2026 at 11:00 am

    Its pretty easy, since older versions of Android will ignore xml attributes they don’t understand you can just set it on your text views or your app’s styles. Or you could set it manually in code but thats more work :p

    And if you’re using the regular version of Roboto you don’t need to do anything special, its the default in 4.0+ (you might need a holo based theme, I can’t remember), and Roboto bold and italic are accessible using TextView’s TextStyle attribute.

    In xml

    <TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:fontFamily="sans-serif-light"
          />
    

    Or in code

    if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN){
        textView.setTypeface(Typeface.create("sans-serif-light", Typeface.NORMAL));         
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to learn how to make Android apps(on Jellybean 4.1.2), but I
I hate to submit a new question, but everyone else has some slight thing
I used to use an app called Log Collector to see system logs. It
In Android ICS and JellyBean, the native Gmail app has a Back button <
There is new feature in Android 4.1 JellyBean. Expandable Notifications in status bar. Question
Is it just me or is anyone else not seeing the latest Android (Jellybean)
Note: As of Jellybean the gallery widget is deprecated. A ViewPager should be used
On JellyBean device. I'm following this to request an oauth2 token, e.g. AccountManager am
I'm trying to download android source Jellybean 4.1.1_r4. I got the permission denied as
The following code snippet is taken from android JellyBean ReferenceQueue.java in the libcore project.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.