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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:23:44+00:00 2026-05-25T00:23:44+00:00

I want to develop an application for Galaxy Tab and Android phones. The tab

  • 0

I want to develop an application for Galaxy Tab and Android phones. The tab and phone UI are very different. Like in tab, we have used fragments, etc. and on the phone we want to use tabs.

I am aware that by using layout-small or layout-large I can show different UIs, but what about functionality?

How should I proceed? Is there a simple way to handle functionality also for different screens? Or is it better to create two applications finally?

  • 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-25T00:23:45+00:00Added an answer on May 25, 2026 at 12:23 am

    First be sure to read this recent blog post that gives an overview of how applications see different screen sizes and can adjust to them:

    http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

    This post has some examples of basic adjustments — providing different layout files for different screen sizes.

    This is also something that the fragment APIs are intended to help with. If you are already writing your UI with fragments, you are most of the way there — showing these in tabs does not require a totally different implementation, just use the fragments to populate the different tabs.

    If you are targeting Android 3.0 or later, this is easy because the action bar already has simple mechanisms to have its tabs allow switching between fragments. This API demo provides a very simple example of its use:

    http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/ActionBarTabs.html

    If you want to run on older versions of the platform, that is what the fragment APIs in the v4 support library are for. These allow you to write your app using fragments and still be able to run all the way down to Android 1.6 (API 4) of the platform. In MR2 we also added some sample code showing how you can use the support lib fragments with the old tab API.

    Sample code for this is included in the now deprecated TabActivity class:

    http://developer.android.com/reference/android/app/TabActivity.html

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

Sidebar

Related Questions

I want to develop an application for Windows 7.5 mango OS phone like HTC
I want to develop an application like biteSMS (for jailbroken iPhone). I have tried
I want to develop a web application, like an online scheduler. (Yes I know
I want to develop a application like MS-Office specially like ms-word and excel. I
I want to develop application that sends image/txt or any file from one android
I want to develop an application with simple Quiz-like games (think of a question
I want to develop an application that encrypt all my conversations that I have.
I want to develop a application. Say for example on Phone7/iPhone/android, this application shall
I want to develop application that my database is not in the localhost, like
I want to develop an application targeting both android and iphone. I guess they

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.