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 8361603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:44:07+00:00 2026-06-09T11:44:07+00:00

I have created a UI that requires some font adjustment for small screens. From

  • 0

I have created a UI that requires some font adjustment for small screens. From what I understand, in order to achieve such scaling, I must create a “diemen.xml” inside both values-normal and values-small directories.
The syntax seems pretty straight forward but what I dont understand is how does Android know where to get the correct values from. Is there a Java code that needs to be added?

For an exmaple:

android:layout_height="@dimen/textview_height"

How would it know if it’s normal sized screen or small?

Thanks!

  • 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-09T11:44:08+00:00Added an answer on June 9, 2026 at 11:44 am

    Android figures this out automatically when it starts your app on a particular device. If the device configuration is small, it will bind @dimen/textview_height to the value in values-small, etc. You don’t need to provide any Java code for this to happen. The details of how this is done are described in the section How Android Finds the Best-matching Resource of the guide topic Providing Resources. You should also read the document Handling Runtime Changes, which discusses what happens to your app is running when the device configuration changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a helper that requires some parameters and should upload a file,
I have recently just created Java project using Eclipse that requires 2 JAR files
I have created some JQuery that will expand a div 'popup' on hover and
I have a Classic ASP site, that requires some database tables to be emptied
We have some Materialized views in our Oracle 9i database that were created a
I have some actions that requires a specific user permission to be accessed, so
I have an application that requires to use QWebView::setContent() to load some HTML content
I have created an applicaton that requires the 2 connection strings in the app.config
I have a restfull webservice that requires loading trained model files and to create
I have a LINQ TO SQL Context that I have created that calls a

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.