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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:02:10+00:00 2026-05-23T22:02:10+00:00

In my android application, I have layout xml files in: layout/ , layout-lan and

  • 0

In my android application, I have layout xml files in:

layout/ , layout-lan

and

layout-xlarge , layout-xlarge-lan folders to support multiple screen sizes.

They are working fine, my application is running on different screen size tablets.

I have one table in my layout, textview components are inserted to the table on fly in Java code. In order to support multi screen size devices, I need to check if the device has large screen size (that’s match layout-xlarge) or normal screen size(match layout/) in Java code (on fly) also to set the text size of TextView.

My question is how to check the screen size match layout/ or layout-xlarge in Java code?

  • 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-05-23T22:02:11+00:00Added an answer on May 23, 2026 at 10:02 pm

    If i understand your implementation correctly, nothing needs to be done programmatically.

    If the TextViews you are adding on the fly are uniform, just make a separate resource that is this TextView. Then, you can make two different TextViews, specified for each layout. Android will choose at runtime which to use.

    This way you can have two different textsizes specified in the two different textviews or create another resource.

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

Sidebar

Related Questions

I have developed an application and created the xml files in different layout :
I have a screen where you can enable/disable modules for my Android application. For
I have a style applied to my whole application: AndroidManifest.xml: <application android:theme=@style/ApplicationStyle android:icon=@drawable/icon android:label=@string/app_name>
I am working on an application for android and we since we have lots
I'm trying create a scaling layout for an Android application. The whole screen should
I have an application that fetches announcements stored as xml files on a server
How do you handle multiple screens in an android application? I have developed with
In My application XML layout, I have one Relativelayout, In which there are two
In My Application, My XML layout is like this: <RelativeLayout android:layout_width=fill_parent android:layout_height=fill_parent> <View class=com.project.twsbi.FingerPaint$MyView
I have an Android application with version 1.6 I take the wallpaper and show

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.