Hi,
I have a screen which lists some views on the top part of the activity. I
also have a listview which is at the bottom of those views.

The issue which I am facing is that I am not getting the screen to scroll as
a whole. Instead, the listview at the bottom, which displays contents
dynamically, gets scrolled.

I initially used ScrollView as the parent view, but later removed it since I
found out that there were some issues when using listview inside scrollview.

Can anybody help me out with the full screen scroll issue? I don't want the
list view to be scrolled. I need the full screen to be scrolled.

I am attaching the layout xml file below.

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android";
android:orientation="vertical">
<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="horizontal">


<ImageView android:id="@+id/ImageView01"
android:layout_width="85dip" android:src="@drawable/q"
android:layout_height="wrap_content" android:paddingLeft="5px"
></ImageView>
 <!-- categoryLabel textview -->
 <TextView android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_below="@+id/ImageView01"
android:id="@+id/categorytextview" android:paddingLeft="5px"></TextView>
 <!-- tagLabel textview -->
 <!-- CategoryPopulate textview -->
<TextView android:layout_toRightOf="@+id/categorytextview"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:layout_below="@+id/ImageView01" android:id="@+id/TextView04"
android:paddingLeft="5px"></TextView>
 <TextView android:id="@+id/dateField" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/channelBtn"
android:layout_toRightOf="@+id/ImageView01"
android:paddingLeft="5px"></TextView>

<RatingBar android:layout_toRightOf="@+id/ImageView01"
android:id="@+id/Rating01" android:layout_width="wrap_content"
android:paddingLeft="5px" style="?android:attr/ratingBarStyleSmall"
android:visibility="visible" android:clickable="false"
android:drawingCacheQuality="low" android:paddingTop="5px"
android:layout_height="15dip" android:numStars="5" android:stepSize="1">
</RatingBar>


<TextView android:layout_width="wrap_content"
android:layout_below="@+id/Rating01" android:layout_height="wrap_content"
android:id="@+id/infoViewCount" android:paddingLeft="5px"
android:layout_toRightOf="@+id/ImageView01"></TextView>
<Button android:layout_toRightOf="@+id/ImageView01"
android:layout_width="wrap_content" android:id="@+id/channelBtn"
android:layout_below="@+id/infoViewCount" android:layout_height="20px"
android:paddingTop="5px" android:paddingLeft="5px" android:text="Channel"
android:height="5px"
android:gravity="top|fill_horizontal|center|clip_vertical"
android:lines="1"></Button>
 <TextView android:layout_toRightOf="@+id/Rating01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/RatingCount"
android:layout_marginLeft="25px"
></TextView>

</RelativeLayout>
<View android:id="@+id/View01"
android:layout_width="fill_parent" android:layout_height="1px"
android:background="#FFFFFFFF" android:paddingTop="15px"
android:layout_marginTop="5px"
android:layout_above="@+id/LinearLayout03" />


<!--  favorite image -->
<Button android:id="@+id/btnfavoriteimage"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:paddingLeft="5px" android:paddingTop="5px"
android:clickable="true" android:background="@drawable/untitled2">
</Button>
<!--  share image -->
<Button android:id="@+id/btnshareimage"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:paddingLeft="5px" android:paddingTop="5px"
android:clickable="true" android:background="@drawable/untitled3">
</Button>
<!--  flag image -->
<Button android:id="@+id/btnflagimage"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:paddingTop="5px" android:paddingRight="5px"
android:clickable="true" android:background="@drawable/untitled4">
</Button>
</LinearLayout>

<!-- checking out the button with background -->
<!-- <LinearLayout android:id="@+id/LinearLayout03"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="horizontal" android:paddingTop="5px">
<Button android:id="@+id/ButtonWithImage01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/untitled" android:adjustViewBounds="true"
android:paddingLeft="5px" android:paddingTop="5px"
android:clickable="true" android:background="@drawable/untitled">
</Button>
</LinearLayout> -->
<!--  -->
<View android:id="@+id/View02" android:layout_width="fill_parent"
android:layout_height="1px" android:background="#FFFFFFFF"
android:paddingTop="15px" android:layout_marginTop="5px" />

<LinearLayout android:id="@+id/LinearLayout03"
android:layout_height="fill_parent" android:background="@drawable/untitled5"
android:layout_width="fill_parent" android:gravity="center_vertical"
android:paddingTop="5px">
</LinearLayout>
<LinearLayout android:id="@+id/LinearLayout03"
android:layout_height="fill_parent"
android:layout_width="fill_parent" android:gravity="center_vertical"
android:paddingTop="5px">
<!-- **************** this is the listview *****************/

<!-- listview for the  data population -->
<ListView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="1"
android:id="@+id/lstRelatedVideos" android:scrollbars="none">
</ListView>
<!-- android:id="@+id/lstRelatedVideos" -->
</LinearLayout>
</LinearLayout>

Thanks,
AJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to