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

The Archive Base Latest Questions

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

Here is a screenshot of my tablet application (not using fragments for now): So

  • 0

Here is a screenshot of my tablet application (not using fragments for now):

enter image description here

So as you can see, there is a little menu on the left with icon for each one of my activities.

Currently, these icons launches new activities, but I would like them to launch fragmentactivity in the frame on the right, so everything would be in the same pannel.

But after reading carefully posts and docs about fragments, I can only see that fragments are displayed at the same time:

from here: http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    <fragment class="com.example.android.apis.app.TitlesFragment"
            android:id="@+id/titles" android:layout_weight="1"
            android:layout_width="0px"
            android:layout_height="match_parent" />

    <FrameLayout android:id="@+id/details" android:layout_weight="1"
            android:layout_width="0px"
            android:layout_height="match_parent" />

</LinearLayout>

So, in order to display different fragments in the same place, what should I do?
I guess that playing on View=gone is the worst idea I can have, isn’t it?

Thank a lot for any help.

  • 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-25T18:09:45+00:00Added an answer on May 25, 2026 at 6:09 pm

    You have to migrate your activities to fragments. You will then have, for example, a RoutePlanner fragment, a TrafficIssues fragment, etc. When one of the icons is pressed, you will use the FragmentManager to replace the details FrameLayout with the corresponding fragment.

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

Sidebar

Related Questions

Here's a screenshot of what I'm dealing with: As you can see, the spacing
Here's how it looks like right now: my screenshot Is there a way for
![enter image description here][1]On my two demo and screenshot, you can understand that so
Here is the screen shot of Youtube Application that we see in tablets. I
I'm doing a little application in order to understand how to manage menu options
Not sure if this is called a lookup table... Here's a screenshot of the
Here is a screenshot of my Project: The lines hidden behind the error window
Here's a screenshot of my AlertDialog's unresponsive state: In the background, the green tile,
https://i.stack.imgur.com/dtnpg.png Here is a screenshot of it. I am running svn on Windows 7,
OK, here's a screenshot of what it's SUPPOSED to look like: And here's a

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.