ksoichiro / Android-ObservableScrollView

Android library to observe scroll events on scrollable views.
http://ksoichiro.github.io/Android-ObservableScrollView/
Apache License 2.0
9.66k stars 2.06k forks source link

Add header to ObservableGridView? #143

Open thotran7989 opened 9 years ago

thotran7989 commented 9 years ago

I can't add header to ObservableGridView. Please help. Thanks.

thotran7989 commented 9 years ago

I want use observableGridView with header + viewpager :(

ksoichiro commented 9 years ago

ObservableGridView can't have header view currently. As mentioned in #148, maybe it could be achieved by integrating HeaderGridView into ObservableGridView. I can't say "when", but I'll try that.

ksoichiro commented 9 years ago

@thotran7989 I added addHeaderView() method to ObservableGridView. (Sorry, I pushed codes few days ago but forgot to write it here.) Could you check that?

You can try it on FlexibleSpaceWithImageWithViewPagerTabActivity example. You can also try it in your app with 1.6.0-SNAPSHOT.

repositories {
    maven {
        url uri('https://oss.sonatype.org/content/repositories/snapshots/')
    }
}

dependencies {
    compile "com.github.ksoichiro:android-observablescrollview:1.6.0-SNAPSHOT"
}