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

  • SEARCH
  • Home
  • 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 8116325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:47:35+00:00 2026-06-06T03:47:35+00:00

I developed an Android application and published it in the Market. Now I want

  • 0

I developed an Android application and published it in the Market. Now I want to make that same application for 10-inch tablets. The problem is when I run my build for 10-inch tablets, it works well but raises some UI issues involving display texts and layout heights. Textual titles look good in the handset version but very small in the tablet version.

How can I programmatically find out if the APK is running on handset, a 10-inch tablet, or a 7-inch tablet? And how can I maintain text sizes and view sizes based on screen sizes? I don’t want to make separate XML files for each resolution like (large, xlarge).

  • 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-06T03:47:36+00:00Added an answer on June 6, 2026 at 3:47 am

    The standard way to do this if it’s just a matter of changing a few text sizes and dimensions is to use a single layout in which you reference dimension or style resources. For example, your layout can have one TextView with its text size declared as:

    android:textSize="@dimen/descriptive_text_size_label"
    

    another view can have its height declared with:

    android:layout_height="@dimen/descriptive_layout_height_label"
    

    and yet another view could have several properties grouped together in a style:

    style="@style/descriptive_style_label"
    

    Then, in the res/values-MODIFIER directory, you have, e.g. styles.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
      <style name="descriptive_style_label">
        <item name="android:layout_width">fill_parent</item>
        <item name="android:layout_height">6dp</item>
      </style>
    
      <dimen name="descriptive_layout_height_label">120dp</dimen>
      <dimen name="descriptive_text_size_label">16dp</dimen>
    </resources>
    

    So you’d have tablet values in res/values-xlarge and default values in res/values.

    If you need to make more drastic changes in your layout, you can use a separate layout, but reuse components with <include>.

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

Sidebar

Related Questions

I have developed and published an Android application on the Android market. The phone
I developed an android application ( https://market.android.com/details?id=hr.cloudwalk.vg ) that uses Foursquare API and I
I have developed some android application like Phonegap. I want to make a jar
I have developed a android application which I want to publish to market. I
Hey i have developed android application . Now at this stage i want to
I developed one simple android application targeting the Mobiles with android 2.0 OS.I want
I have developed the Hello World Android application using Eclipse. I can run the
I have developed a class in eclipse for my android application. Now I am
I am newbie in android. I developed an android application that shows 15 tabs.
I have developed android application. Now it is time to give it to the

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.