• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

ScrollView issue in my layout

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have 4 List Views inside my Linear Layout.And these List View items are dynamically generated from my activity class.
The problem is if the first List View content is more, then the page is scrolling without any fail.But after this List View content I am not able to scroll other 3 three List View content.
Can anyone help on this.

This is my layout.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/request_center_relative" >

<include
android:id="@+id/header"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
layout="@layout/headerlayout" />





<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linear1"
android:layout_below="@+id/header"
android:orientation="vertical">

<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

android:background="#D8D8D8"

android:paddingLeft="10dp"
android:text="@string/past" />

<ListView
android:id="@+id/listView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

android:scrollingCache="false"


android:divider="#FFFFFF"
android:dividerHeight="5dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:listSelector="@drawable/layers" >

</ListView>

<TextView
android:id="@+id/textView2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

android:background="#5F9EA0"

android:paddingLeft="10dp"
android:text="@string/today" />
<ListView
android:id="@+id/listView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

android:scrollingCache="false"


android:divider="#FFFFFF"
android:dividerHeight="5dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:listSelector="@drawable/layers" >

</ListView>
<TextView
android:id="@+id/textView3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

android:background="#D8D8D8"

android:paddingLeft="10dp"
android:text="@string/thisweek" />
<ListView
android:id="@+id/listView2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

android:scrollingCache="false"


android:divider="#FFFFFF"
android:dividerHeight="5dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:listSelector="@drawable/layers" >

</ListView>
<TextView
android:id="@+id/textView4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

android:background="#D8D8D8"

android:paddingLeft="10dp"
android:text="@string/upcoming" />
<ListView
android:id="@+id/listView3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

android:scrollingCache="false"


android:divider="#FFFFFF"
android:dividerHeight="5dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:listSelector="@drawable/layers" >

</ListView>
</LinearLayout>

<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/header"
android:background="@drawable/requestheaderlayers"
android:visibility="gone"
>

<TextView
android:id="@+id/uname_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textColor="@color/white"
android:paddingTop="15dp"
android:paddingLeft="10dp" />

<TextView
android:id="@+id/count_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:paddingTop="15dp"
android:paddingLeft="155dp"
android:paddingRight="10dp"
android:textColor="@color/white"
/>
</LinearLayout>






<ImageView
android:id="@+id/cirle_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/linearLayout1"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:background="@drawable/leader_circle"
android:visibility="invisible"/>"

<ImageView
android:id="@+id/avatar_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/scrollView1"
android:layout_centerHorizontal="true"
android:src="@drawable/default_avatar"
android:visibility="invisible" />

<LinearLayout
android:id="@+id/hold_check_boxes"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<ProgressBar
android:id="@+id/progressBarRequestCenter"
android:layout_gravity="center"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />



<include
android:id="@+id/footer"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
layout="@layout/footerlayout" />
</LinearLayout>

</RelativeLayout>


Thanks,
SNEHITHAPRASAD.
 
Ranch Hand
Posts: 43
Android C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But after this List View content I am not able to scroll other 3 three List View content.
Can anyone help on this.



Try to put your list view inside scroll tag

 
Snehitha Prasad
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for your Response.I tried on that way also.But that one also didn't work for me.Can you please tell me any other ideas to fix this issue.

Thanks,
SNEHITHAPRASAD
 
Rancher
Posts: 43077
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, what exactly did you try ? The layout sonu posted is incomplete and can't possibly work, so it can't have been what you tried.
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic