1. Check out our companion app, Forums for Android! Download from Google Play

I want to connect two or more ListViews

Discussion in 'Android Lounge' started by vaishnavi_s, Aug 18, 2011.

  1. vaishnavi_s

    vaishnavi_s New Member
    Thread Starter

    Jul 5, 2011
    I have a ListView, say l1 in a Linear Layout in my xml. Dynamically Im adding another ListView, say l2 to the LinearLayout. Its working fine, but when I run it on my mobile, each list (ie., l1 or l2) are floating on the screen.

    My approach to solve this problem.
    1. I wanted to fix both the ListViews to the layout. So, that they dont move and it will seem continuous. So I tried to remove scrollable action, thinking it would solve my problem. But couldnt do it, dint get good clue.

    2. Next, I thought i will connect those ListViews by adding l2 as a footer to l1. Here also I faced a problem. When added l2 as a footer to l1, only the header of l2 was added as a footer to l1. The l2 body was missing.

    How yo solve this issue.
    I have spent more than three days in working with this. But, couldnt get a solution.
    Please help me out.



Share This Page