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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:08:39+00:00 2026-06-17T13:08:39+00:00

I have got a project that implement tablet version of an app. this app

  • 0

I have got a project that implement tablet version of an app. this app has only portrait mode without landscape mode support. so my approach would be implementation for both in tablet.

However, you guys all know that android has different type of devices and android version. how to make sure that my tablet app will work for every tablet devices. Also UI, what is the best practice to do in tablet? how can I make sure my app layout is fit in all devices? What kind of UI framework would be useful for developing android tablet?

  • 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-17T13:08:40+00:00Added an answer on June 17, 2026 at 1:08 pm

    You have to use fragments. So your app could look like this:

    enter image description here

    • Create a layout, one for a handset and one for a tablet.

    layout/main.xml:

    <LinearLayout
    android:id="@+id/handset"
    [...]
    >
    </LinearLayout>
    

    layout-large/sw400dp:

    <LinearLayout 
      [...]
      >
    
        <fragment android:name="com.bla.bla.FirstFragment"
                  android:id="@+id/first_fragment"
                  [...]
                  />
    
         <fragment android:name="com.bla.bla.SecondFragment"
                  android:id="@+id/second_fragment"
                  [...]
                  />
    
    </LinearLayout>
    
    • Now check for this in your FragmentActivity:

    if (findViewById(R.id.handset) != null) {
        // it's a handset device and you can add a Fragment to this View
        }
    
     FirstFragment firstFragment = new FirstFragment();
     getSupportFragmentManager().beginTransaction().add(R.id.handset, firstFragment).commit();
    
    • if R.id.handset returns null then it’s a tablet, in this case the statically added Fragments will be handled by their Fragments class.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got a project that is using jni to connect java wrapper and
I'm new in eclipse and I have got a project that can add and
I've got question to you. I have got two project in PHP that uses
i have done some learning on struts based on one project that i got.Now
I got a Project from my Company without Documentation. Now I have to add
I have a file that has over 200 lines in this format: name old_id
I have got access to a C project at work that I have to
I've got a project that was originally written for Java 1.4, but I only
In my .NET 4.0 project I've got an object that has public fields and
I am a fresher and I have got a project in asp.net and c#.

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.