Pull to refresh list view(pull) not working inside scroll view .. it is not scrolling ..
Here is my xml file.
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="10dp"
android:background="#fff">
<ImageView
android:id="@+id/profile_image"
android:layout_width="40dp"
android:layout_height="40dp"
android:scaleType="fitXY"
android:src="@drawable/loading_image" />
<TextView
android:id="@+id/user_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingLeft="10dp"
android:text="testcase1" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/clock_icon" />
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1 day(s)ago"
android:textColor="@color/Gray" />
</LinearLayout>
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="300dp"
android:src="@drawable/loading_image_large"
android:scaleType="fitXY"/>
<TextView
android:id="@+id/likes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/clap"
android:drawablePadding="10dp"
android:padding="10dp"
android:text="1 like(s)"
android:textStyle="bold" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="view all comments"
android:textColor="@color/Gray" />
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/comments_listview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp" />
<EditText
android:id="@+id/comment_editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_marginRight="5dp"
android:background="@drawable/gray_stroke_sec"
android:hint="New Comment"
android:inputType="textCapSentences|textMultiLine"
android:maxLines="3"
android:minHeight="40dp"
android:padding="10dp"
android:scrollHorizontally="true"
android:textSize="@dimen/text_size_14" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp" >
<ImageView
android:id="@+id/like_image"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/like" />
<ImageView
android:id="@+id/repost"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/repost" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="4"
android:gravity="right|center_vertical" >
<TextView
android:id="@+id/comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/comment_bg"
android:gravity="center"
android:padding="10dp"
android:text="Comment"
android:textColor="#fff"
android:textSize="16sp"
android:clickable="true"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>