Yalantis / Phoenix

Phoenix Pull-to-Refresh
https://yalantis.com/
Apache License 2.0
4.01k stars 916 forks source link

can I use this library like this? #25

Closed zhouhytx2010 closed 8 years ago

zhouhytx2010 commented 8 years ago

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">

<com.yalantis.phoenix.PullToRefreshView
    android:id="@+id/pull_to_refresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</com.yalantis.phoenix.PullToRefreshView>

If I use the library like this, it can't pull to refresh, how can I do it ?

shliama commented 8 years ago

@zhouhytx2010 You see, library needs some scrollable view to work (ListView, RecyclerView or ScrollView). For your issue I suggest to wrap your ImageView with just ScrollView. I've just tested this workaround and it worked :)

TeeRawk commented 8 years ago

Outdated