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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:07:01+00:00 2026-06-05T03:07:01+00:00

From Android Best Practices API Guide: Supporting Tablets and Handsets : In some cases,

  • 0

From Android Best Practices API Guide: Supporting Tablets and Handsets:

In some cases, you may have one APK to support both a phone and a
tablet. Suppose on a phone you have a ListFragment that shows a list
of contacts in Activity A, and then a Details fragment that opens in
a new Activity, Activity B, when the user selects a contact.

Now on a tablet, we can take advantage of extra real estate by
combining the two Fragments into a single, multi-pane Activity,
Activity A.

Fragment Design on Tablets/Phones

Consider the application on the phone, again. In Activity A, the options menu might provide a “select all” or “sync contacts” action. Long pressing the items in the list may provide options like “Edit” or “Delete”. In Activity B, the options menu can provide actions like “Edit”, “Delete”, or “Favorite” as well.

How do we consolidate those options on a tablet, however? Do we just consolidate all the options menu items together into one giant menu (1) ? Or do we just discard the Activity B menu and let the user rely on long-tapping the items on the left (2)? One other option is to modify the details fragment to add some of the actions to the details fragment itself (3).

According to the Android Design website, the Contacts app seems to use a combination of 1 and 3. Take a look at http://developer.android.com/design/patterns/multi-pane-layouts.html

So is there a recommended approach, or is it up to the developer?

  • 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-05T03:07:02+00:00Added an answer on June 5, 2026 at 3:07 am

    They can all go in the options menu (or, better yet, action bar), assuming that there will always be at least one item selected in the list in Fragment A. If there are scenarios where Fragment A’s list is empty or has no selection, then the story gets a bit more complicated, as B’s action bar items all presume the existence of a selection. Ideally, you would not load Fragment B into the activity until there is a selection, in which case Fragment B’s action bar items would not appear until they are valid.

    That being said, having slightly different layouts for Fragment B (your option #3) is also reasonable. I am skeptical that it was worth it for the “favorite” star toggle, but, then again, they didn’t ask me… 🙂

    The one that I definitely disagree with is your option #2. How much you use options #1 or #3 (or a blend) is really up to you.

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

Sidebar

Related Questions

From Android widget screen guidelines, http://developer.android.com/guide/practices/ui_guidelines/widget_design.html , we know that, home screen has 4*4
I have with an blue tooth application from android api sample.I am displaying blue
what are the best practices parsing XML from an HTTP resource in Android? I've
I'm looking to establish some best practices for Android, with regards to code reuse,
I am new to developing for android. I have a question regarding some best
Starting from Android 3.2 I have this strange problem. It's very easy to reproduce:
I need to send some byte array from android device to Servlet. For this
I am working with the contacts API from android, where I insert and delete
I have accessed a web service from Android 2.2.It is perfectly OK.I changed my
I have an android application with many activities. I render next activity from 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.