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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:35:19+00:00 2026-05-26T02:35:19+00:00

The Notepad example on android developer is good for a single list, but I

  • 0

The Notepad example on android developer is good for a single list, but I want two lists drawing from two tables in a single view. Can anyone expand on how to implement something like this?

I’m wondering about how many adapters I’ll need. Can I manage two lists in a single ListActivity?

  • 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-26T02:35:19+00:00Added an answer on May 26, 2026 at 2:35 am

    Why not implement as a Relative Layout instead of the Linear Layout in the tutorial. A linear layout only allows objects to be above and below each other while Relative Layout allows for more freedom.

    Use

    android:layout_toRightOf = ""
    android:layout_toLeftOf = ""
    

    To put things next to each other.
    Mess with padding and spacing to get a good effect
    (note using both at the same time causes a crash so be sure to just use one).

    Also there is

    android:layout_alignLeft
    android:layout_alignRight
    

    but I’m just in the process of working it out.

    And here we are why not have some example code

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id = "@+id/layout">
    
    
    
    <TextView
    android:id = "@+id/RightFrame"  
    android:layout_width="wrap_content" 
    android:layout_height="fill_parent" 
    android:text="hello right frame"
    android:layout_alignParentRight = "true"/>
    
    
    
    
    <TextView
    android:id = "@+id/LeftFrame"
    android:layout_width="wrap_content" 
    android:layout_height="fill_parent" 
    android:text="hello left frame"
    android:layout_alignParentLeft = "true"/>
    
    
    
    </RelativeLayout>
    

    Sorry if its a little messy

    EDIT:

    About the list adapters I would think it would be best that you use two adapters and implement them in separate frame views or something. It may also be worth looking into fragments but they are horrible if you ask me.

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

Sidebar

Related Questions

I want to prevent TinyMCE from converting linebreaks (pasted from notepad for example) into
I'm looking at the Notepad tutorial from the Android developer's site. I have a
So I've been modifying the notepad tutorial code: http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html . Basically what I want
I want to build an notepad-style application on android that will have syntax highlighting.
I started off with the notepad example on the android website. What I did
I read this http://developer.android.com/resources/tutorials/notepad/index.html and now try to create my own simple example. For
I want to print my output xml in a single line[when viewed in notepad
In the Notepad example , they display a list of titles. How would you
I need recommendations for a good (free) development notepad to work in on my
I've just started developing for Android. So far it's been surprisingly smooth sailing, but

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.