naver / android-pull-to-refresh

Pull To Refresh Views for Android! v3.2.3
Apache License 2.0
310 stars 82 forks source link

Gmail-style/Action-bar pull-to-refresh doesn't seem to work in Android 2.3 emulator #3

Open mingfai opened 10 years ago

mingfai commented 10 years ago

I modified a sample and it works in Android 4.4 emulator but not 2.3 emulator. In 2.3, it seems the "pull" does take effect but the animation is not shown.

Anyway, an easiest workaround is to make it clear in doc which Android platform version is supported, and ask people to use a different layout for older version.

ncoolz commented 10 years ago

I forgot that Android 2.x doesn't support ActionBar. Gmail-style PTR needs ActionBar, but now it seems there is no way to use Gmail-style PTR without extending ActionBarActivity in "client code". Because PTR library can't provide a custom Activity only for Gmail-style PTR or the lower version of Android SDK (as you know, the library is just an UI component.). So, I will accept your suggest.