java - Android: ScrollView will not Scroll -


i have following xml file getting populated via list view. can't scroll. please advise:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical"  android:id="@+id/biglayout"  android:layout_width="fill_parent"  android:layout_height="fill_parent">  <scrollview      android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:fillviewport="true"     android:scrollbars="vertical">      <linearlayout          android:orientation="vertical"          android:id="@+id/mymainlayout"          android:layout_width="fill_parent"          android:layout_height="wrap_content">             <com.google.ads.adview android:id="@+id/adviewer"             android:layout_width="fill_parent"             android:layout_height="wrap_content"             ads:adunitid="xxxxxxxxxxxxxx"             ads:adsize="banner"             ads:loadadoncreate="true"/>         <textview              android:layout_height="wrap_content"              android:layout_width="fill_parent"              android:text="randomdrunkquotes.com"              android:id="@+id/lbltitle"              android:textsize="16px"              android:padding="5px"              android:textstyle="bold"              android:gravity="center_horizontal"/>          <!-- list divider -->         <view              android:layout_width="fill_parent"             android:layout_height="1dip"             android:background="?android:attr/listdivider" />         <!-- listview (grid_items) -->         <listview              android:id="@+id/listview"             android:layout_height="fill_parent"             android:layout_width="fill_parent">         </listview>                   </linearlayout>  </scrollview>   </linearlayout> 

@giantmarshmallow solved it.

upon removing scroll view , adding

android:fillviewport="true" android:scrollbars="vertical" 

to parent linearlayout fixed problem. thank input.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -