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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:57:13+00:00 2026-06-03T20:57:13+00:00

I want to create an activity that has sidebar on the left that is

  • 0

I want to create an activity that has sidebar on the left that is not changing between activity transitions (like split view in ios). It seems that I can do this with fragments but I need to add support for devices that is prior to HoneyComb.

I tried using a layout something like below.

   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal" >
<LinearLayout android:layout_width="320dip"
     android:layout_height="match_parent"
     android:id="@+id/navLay"
    >
 <ListView
         android:id="@+id/navList"
         android:layout_width="match_parent"
         android:layout_height="wrap_content" >
     </ListView>

 </LinearLayout>
  <LinearLayout 
     android:layout_width="wrap_content"
     android:layout_height="match_parent"
     android:id="@+id/contentLay"
     ><ListView
      android:id="@+id/contentList"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" >
  </ListView>
 </LinearLayout>
</LinearLayout>

But the first list is also updated on activity transition. I want to note that the activity is the same activity except the right list’s data source is different. So it would be pretty good if I could save state and content of the left navigation bar while navigating. Any help will be appreciated.

  • 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-03T20:57:15+00:00Added an answer on June 3, 2026 at 8:57 pm

    Take a look at Support Package which provides classes for backward compatibility, and includes Fragment class also.

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

Sidebar

Related Questions

Like in topic - I want to create activity above tabHost that I already
I want to create a custom style for an activity that will look like
I want to create a method for my Activity model that has many Practices
I want to create/show an activity stream of everything that has been published/commented on
I want to create an android activity that looks like the one below this.
I want to create an app that contains a Service S and an Activity
I would like to create a function for a table that has three columns
I want to create layout programmatically in different class which is not an activity
I want create module which update list of usb devices automatically (not only mass
I want to create a stored procedure (on SQL Server 2005) that fetches 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.