Repository: ksoichiro/Android-ObservableScrollView
Branch: master
Commit: 47a5fb2db5e9
Files: 352
Total size: 1.0 MB
Directory structure:
gitextract_qypqnipg/
├── .editorconfig
├── .gitignore
├── .travis-script.sh
├── .travis.yml
├── CONTRIBUTING.md
├── LICENSE.txt
├── README.md
├── build.gradle
├── docs/
│ ├── _data.json
│ ├── _layout.ejs
│ ├── advanced/
│ │ ├── _data.json
│ │ ├── index.md
│ │ ├── sliding-up.md
│ │ └── viewpager.md
│ ├── basic/
│ │ ├── _data.json
│ │ ├── filling-gap.md
│ │ ├── flexible-space-toolbar.md
│ │ ├── flexible-space-with-image.md
│ │ ├── index.md
│ │ ├── parallax-image.md
│ │ ├── show-hide-action-bar.md
│ │ ├── sticky-header.md
│ │ └── translating-toolbar.md
│ ├── contributor/
│ │ ├── _data.json
│ │ ├── ci.md
│ │ ├── index.md
│ │ ├── release.md
│ │ └── update-website.md
│ ├── example/
│ │ ├── _data.json
│ │ ├── android-studio.md
│ │ ├── eclipse.md
│ │ ├── google-play.md
│ │ ├── index.md
│ │ └── wercker.md
│ ├── faq.md
│ ├── overview.md
│ ├── quick-start/
│ │ ├── _data.json
│ │ ├── animation.md
│ │ ├── dependencies.md
│ │ ├── index.md
│ │ └── layout.md
│ └── reference/
│ ├── _data.json
│ ├── environment.md
│ ├── index.md
│ ├── release-notes.md
│ └── supported-widgets.md
├── gradle/
│ ├── gradle-mvn-push.gradle
│ ├── version.gradle
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── library/
│ ├── .gitignore
│ ├── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── res/
│ │ └── .gitkeep
│ └── src/
│ ├── androidTest/
│ │ ├── AndroidManifest.xml
│ │ ├── assets/
│ │ │ └── lipsum.html
│ │ ├── java/
│ │ │ └── com/
│ │ │ ├── github/
│ │ │ │ └── ksoichiro/
│ │ │ │ └── android/
│ │ │ │ └── observablescrollview/
│ │ │ │ ├── SavedStateTest.java
│ │ │ │ └── test/
│ │ │ │ ├── GridViewActivity.java
│ │ │ │ ├── GridViewActivityTest.java
│ │ │ │ ├── HeaderGridViewActivity.java
│ │ │ │ ├── HeaderGridViewActivityTest.java
│ │ │ │ ├── ListViewActivity.java
│ │ │ │ ├── ListViewActivityTest.java
│ │ │ │ ├── ListViewScrollFromBottomActivity.java
│ │ │ │ ├── ListViewScrollFromBottomActivityTest.java
│ │ │ │ ├── RecyclerViewActivity.java
│ │ │ │ ├── RecyclerViewActivityTest.java
│ │ │ │ ├── RecyclerViewScrollFromBottomActivity.java
│ │ │ │ ├── RecyclerViewScrollFromBottomActivityTest.java
│ │ │ │ ├── ScrollUtilsTest.java
│ │ │ │ ├── ScrollViewActivity.java
│ │ │ │ ├── ScrollViewActivityTest.java
│ │ │ │ ├── SimpleHeaderRecyclerAdapter.java
│ │ │ │ ├── SimpleRecyclerAdapter.java
│ │ │ │ ├── TouchInterceptionGridViewActivity.java
│ │ │ │ ├── TouchInterceptionGridViewActivityTest.java
│ │ │ │ ├── TouchInterceptionListViewActivity.java
│ │ │ │ ├── TouchInterceptionListViewActivityTest.java
│ │ │ │ ├── TouchInterceptionRecyclerViewActivity.java
│ │ │ │ ├── TouchInterceptionRecyclerViewActivityTest.java
│ │ │ │ ├── TouchInterceptionScrollViewActivity.java
│ │ │ │ ├── TouchInterceptionScrollViewActivityTest.java
│ │ │ │ ├── TouchInterceptionWebViewActivity.java
│ │ │ │ ├── TouchInterceptionWebViewActivityTest.java
│ │ │ │ ├── UiTestUtils.java
│ │ │ │ ├── ViewPagerTab2Activity.java
│ │ │ │ ├── ViewPagerTab2ActivityTest.java
│ │ │ │ ├── ViewPagerTab2GridViewFragment.java
│ │ │ │ ├── ViewPagerTab2ListViewFragment.java
│ │ │ │ ├── ViewPagerTab2RecyclerViewFragment.java
│ │ │ │ ├── ViewPagerTab2ScrollViewFragment.java
│ │ │ │ ├── ViewPagerTab2WebViewFragment.java
│ │ │ │ ├── ViewPagerTabActivity.java
│ │ │ │ ├── ViewPagerTabActivityTest.java
│ │ │ │ ├── ViewPagerTabListViewFragment.java
│ │ │ │ ├── ViewPagerTabRecyclerViewFragment.java
│ │ │ │ ├── ViewPagerTabScrollViewFragment.java
│ │ │ │ ├── WebViewActivity.java
│ │ │ │ └── WebViewActivityTest.java
│ │ │ └── google/
│ │ │ └── samples/
│ │ │ └── apps/
│ │ │ └── iosched/
│ │ │ └── ui/
│ │ │ └── widget/
│ │ │ ├── SlidingTabLayout.java
│ │ │ └── SlidingTabStrip.java
│ │ └── res/
│ │ ├── color/
│ │ │ └── tab_text_color.xml
│ │ ├── layout/
│ │ │ ├── activity_gridview.xml
│ │ │ ├── activity_listview.xml
│ │ │ ├── activity_recyclerview.xml
│ │ │ ├── activity_scrollview.xml
│ │ │ ├── activity_touchinterception_gridview.xml
│ │ │ ├── activity_touchinterception_listview.xml
│ │ │ ├── activity_touchinterception_recyclerview.xml
│ │ │ ├── activity_touchinterception_scrollview.xml
│ │ │ ├── activity_touchinterception_webview.xml
│ │ │ ├── activity_viewpagertab.xml
│ │ │ ├── activity_viewpagertab2.xml
│ │ │ ├── activity_webview.xml
│ │ │ ├── fragment_gridview.xml
│ │ │ ├── fragment_listview.xml
│ │ │ ├── fragment_recyclerview.xml
│ │ │ ├── fragment_scrollview.xml
│ │ │ ├── fragment_scrollview_noheader.xml
│ │ │ ├── fragment_webview.xml
│ │ │ ├── padding.xml
│ │ │ └── tab_indicator.xml
│ │ └── values/
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── main/
│ └── java/
│ └── com/
│ └── github/
│ └── ksoichiro/
│ └── android/
│ └── observablescrollview/
│ ├── CacheFragmentStatePagerAdapter.java
│ ├── ObservableGridView.java
│ ├── ObservableListView.java
│ ├── ObservableRecyclerView.java
│ ├── ObservableScrollView.java
│ ├── ObservableScrollViewCallbacks.java
│ ├── ObservableWebView.java
│ ├── ScrollState.java
│ ├── ScrollUtils.java
│ ├── Scrollable.java
│ └── TouchInterceptionFrameLayout.java
├── samples/
│ ├── .gitignore
│ ├── AndroidManifest.xml
│ ├── README.md
│ ├── assets/
│ │ ├── handletouch.html
│ │ └── lipsum.html
│ ├── build.gradle
│ ├── proguard-rules.pro
│ ├── res/
│ │ ├── color/
│ │ │ └── tab_text_color.xml
│ │ ├── drawable/
│ │ │ ├── gradient_header_background.xml
│ │ │ └── sliding_header_overlay.xml
│ │ ├── layout/
│ │ │ ├── activity_about.xml
│ │ │ ├── activity_actionbarcontrolgridview.xml
│ │ │ ├── activity_actionbarcontrollistview.xml
│ │ │ ├── activity_actionbarcontrolrecyclerview.xml
│ │ │ ├── activity_actionbarcontrolscrollview.xml
│ │ │ ├── activity_actionbarcontrolwebview.xml
│ │ │ ├── activity_fillgap3listview.xml
│ │ │ ├── activity_fillgap3recyclerview.xml
│ │ │ ├── activity_fillgap3scrollview.xml
│ │ │ ├── activity_fillgaplistview.xml
│ │ │ ├── activity_fillgaprecyclerview.xml
│ │ │ ├── activity_fillgapscrollview.xml
│ │ │ ├── activity_flexiblespacetoolbarscrollview.xml
│ │ │ ├── activity_flexiblespacetoolbarwebview.xml
│ │ │ ├── activity_flexiblespacewithimagegridview.xml
│ │ │ ├── activity_flexiblespacewithimagelistview.xml
│ │ │ ├── activity_flexiblespacewithimagerecyclerview.xml
│ │ │ ├── activity_flexiblespacewithimagescrollview.xml
│ │ │ ├── activity_flexiblespacewithimagewithviewpagertab.xml
│ │ │ ├── activity_flexiblespacewithimagewithviewpagertab2.xml
│ │ │ ├── activity_fragmentactionbarcontrol.xml
│ │ │ ├── activity_fragmenttransition.xml
│ │ │ ├── activity_handletouchgridview.xml
│ │ │ ├── activity_handletouchlistview.xml
│ │ │ ├── activity_handletouchrecyclerview.xml
│ │ │ ├── activity_handletouchscrollview.xml
│ │ │ ├── activity_handletouchwebview.xml
│ │ │ ├── activity_main.xml
│ │ │ ├── activity_parallaxtoolbargridview.xml
│ │ │ ├── activity_parallaxtoolbarlistview.xml
│ │ │ ├── activity_parallaxtoolbarscrollview.xml
│ │ │ ├── activity_slidingupgridview.xml
│ │ │ ├── activity_slidinguplistview.xml
│ │ │ ├── activity_slidinguprecyclerview.xml
│ │ │ ├── activity_slidingupscrollview.xml
│ │ │ ├── activity_slidingupwebview.xml
│ │ │ ├── activity_stickyheaderlistview.xml
│ │ │ ├── activity_stickyheaderrecyclerview.xml
│ │ │ ├── activity_stickyheaderscrollview.xml
│ │ │ ├── activity_stickyheaderwebview.xml
│ │ │ ├── activity_toolbarcontrolgridview.xml
│ │ │ ├── activity_toolbarcontrollistview.xml
│ │ │ ├── activity_toolbarcontrolrecyclerview.xml
│ │ │ ├── activity_toolbarcontrolscrollview.xml
│ │ │ ├── activity_toolbarcontrolwebview.xml
│ │ │ ├── activity_viewpagertab.xml
│ │ │ ├── activity_viewpagertab2.xml
│ │ │ ├── activity_viewpagertabfragment.xml
│ │ │ ├── divider.xml
│ │ │ ├── fragment_actionbarcontrollistview.xml
│ │ │ ├── fragment_flexiblespacewithimagegridview.xml
│ │ │ ├── fragment_flexiblespacewithimagelistview.xml
│ │ │ ├── fragment_flexiblespacewithimagerecyclerview.xml
│ │ │ ├── fragment_flexiblespacewithimagescrollview.xml
│ │ │ ├── fragment_fragmenttransition_default.xml
│ │ │ ├── fragment_fragmenttransition_second.xml
│ │ │ ├── fragment_gridview.xml
│ │ │ ├── fragment_listview.xml
│ │ │ ├── fragment_recyclerview.xml
│ │ │ ├── fragment_scrollview.xml
│ │ │ ├── fragment_scrollview_noheader.xml
│ │ │ ├── fragment_scrollviewwithfab.xml
│ │ │ ├── fragment_viewpagertabfragment_parent.xml
│ │ │ ├── fragment_webview.xml
│ │ │ ├── gradient_header.xml
│ │ │ ├── list_item_handletouch.xml
│ │ │ ├── list_item_main.xml
│ │ │ ├── padding.xml
│ │ │ ├── recycler_header.xml
│ │ │ └── tab_indicator.xml
│ │ ├── layout-v11/
│ │ │ └── tab_indicator.xml
│ │ ├── menu/
│ │ │ └── menu_main.xml
│ │ ├── values/
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ ├── strings_license.xml
│ │ │ └── styles.xml
│ │ ├── values-ar/
│ │ │ └── strings.xml
│ │ └── values-w820dp/
│ │ └── dimens.xml
│ └── src/
│ ├── androidTest/
│ │ └── java/
│ │ └── com/
│ │ └── github/
│ │ └── ksoichiro/
│ │ └── app/
│ │ └── ApplicationTest.java
│ └── main/
│ └── java/
│ └── com/
│ ├── github/
│ │ └── ksoichiro/
│ │ └── android/
│ │ └── observablescrollview/
│ │ └── samples/
│ │ ├── AboutActivity.java
│ │ ├── ActionBarControlGridViewActivity.java
│ │ ├── ActionBarControlListViewActivity.java
│ │ ├── ActionBarControlRecyclerViewActivity.java
│ │ ├── ActionBarControlScrollViewActivity.java
│ │ ├── ActionBarControlWebViewActivity.java
│ │ ├── BaseActivity.java
│ │ ├── BaseFragment.java
│ │ ├── FillGap2BaseActivity.java
│ │ ├── FillGap2ListViewActivity.java
│ │ ├── FillGap2RecyclerViewActivity.java
│ │ ├── FillGap2ScrollViewActivity.java
│ │ ├── FillGap3BaseActivity.java
│ │ ├── FillGap3ListViewActivity.java
│ │ ├── FillGap3RecyclerViewActivity.java
│ │ ├── FillGap3ScrollViewActivity.java
│ │ ├── FillGapBaseActivity.java
│ │ ├── FillGapListViewActivity.java
│ │ ├── FillGapRecyclerViewActivity.java
│ │ ├── FillGapScrollViewActivity.java
│ │ ├── FlexibleSpaceToolbarScrollViewActivity.java
│ │ ├── FlexibleSpaceToolbarWebViewActivity.java
│ │ ├── FlexibleSpaceWithImageBaseFragment.java
│ │ ├── FlexibleSpaceWithImageGridViewActivity.java
│ │ ├── FlexibleSpaceWithImageGridViewFragment.java
│ │ ├── FlexibleSpaceWithImageListViewActivity.java
│ │ ├── FlexibleSpaceWithImageListViewFragment.java
│ │ ├── FlexibleSpaceWithImageRecyclerViewActivity.java
│ │ ├── FlexibleSpaceWithImageRecyclerViewFragment.java
│ │ ├── FlexibleSpaceWithImageScrollViewActivity.java
│ │ ├── FlexibleSpaceWithImageScrollViewFragment.java
│ │ ├── FlexibleSpaceWithImageWithViewPagerTab2Activity.java
│ │ ├── FlexibleSpaceWithImageWithViewPagerTabActivity.java
│ │ ├── FragmentActionBarControlListViewActivity.java
│ │ ├── FragmentActionBarControlListViewFragment.java
│ │ ├── FragmentTransitionActivity.java
│ │ ├── FragmentTransitionDefaultFragment.java
│ │ ├── FragmentTransitionSecondFragment.java
│ │ ├── HandleTouchGridViewActivity.java
│ │ ├── HandleTouchListViewActivity.java
│ │ ├── HandleTouchRecyclerViewActivity.java
│ │ ├── HandleTouchScrollViewActivity.java
│ │ ├── HandleTouchWebViewActivity.java
│ │ ├── MainActivity.java
│ │ ├── ParallaxToolbarGridViewActivity.java
│ │ ├── ParallaxToolbarListViewActivity.java
│ │ ├── ParallaxToolbarScrollViewActivity.java
│ │ ├── ScrollFromBottomListViewActivity.java
│ │ ├── ScrollFromBottomRecyclerViewActivity.java
│ │ ├── SimpleHeaderRecyclerAdapter.java
│ │ ├── SimpleRecyclerAdapter.java
│ │ ├── SlidingUpBaseActivity.java
│ │ ├── SlidingUpGridViewActivity.java
│ │ ├── SlidingUpListViewActivity.java
│ │ ├── SlidingUpRecyclerViewActivity.java
│ │ ├── SlidingUpScrollViewActivity.java
│ │ ├── SlidingUpWebViewActivity.java
│ │ ├── StickyHeaderListViewActivity.java
│ │ ├── StickyHeaderRecyclerViewActivity.java
│ │ ├── StickyHeaderScrollViewActivity.java
│ │ ├── StickyHeaderWebViewActivity.java
│ │ ├── ToolbarControlBaseActivity.java
│ │ ├── ToolbarControlGridViewActivity.java
│ │ ├── ToolbarControlListViewActivity.java
│ │ ├── ToolbarControlRecyclerViewActivity.java
│ │ ├── ToolbarControlScrollViewActivity.java
│ │ ├── ToolbarControlWebViewActivity.java
│ │ ├── ViewPagerTab2Activity.java
│ │ ├── ViewPagerTab2GridViewFragment.java
│ │ ├── ViewPagerTab2ListViewFragment.java
│ │ ├── ViewPagerTab2RecyclerViewFragment.java
│ │ ├── ViewPagerTab2ScrollViewFragment.java
│ │ ├── ViewPagerTab2WebViewFragment.java
│ │ ├── ViewPagerTabActivity.java
│ │ ├── ViewPagerTabFragmentActivity.java
│ │ ├── ViewPagerTabFragmentGridViewFragment.java
│ │ ├── ViewPagerTabFragmentListViewFragment.java
│ │ ├── ViewPagerTabFragmentParentFragment.java
│ │ ├── ViewPagerTabFragmentRecyclerViewFragment.java
│ │ ├── ViewPagerTabFragmentScrollViewFragment.java
│ │ ├── ViewPagerTabFragmentWebViewFragment.java
│ │ ├── ViewPagerTabGridViewFragment.java
│ │ ├── ViewPagerTabListViewActivity.java
│ │ ├── ViewPagerTabListViewFragment.java
│ │ ├── ViewPagerTabRecyclerViewFragment.java
│ │ ├── ViewPagerTabScrollViewActivity.java
│ │ ├── ViewPagerTabScrollViewFragment.java
│ │ ├── ViewPagerTabScrollViewWithFabActivity.java
│ │ └── ViewPagerTabScrollViewWithFabFragment.java
│ └── google/
│ └── samples/
│ └── apps/
│ └── iosched/
│ └── ui/
│ └── widget/
│ ├── SlidingTabLayout.java
│ └── SlidingTabStrip.java
├── settings.gradle
├── website/
│ ├── .bowerrc
│ ├── .gitignore
│ ├── bower.json
│ ├── gulpfile.js
│ ├── harp.json
│ ├── package.json
│ └── public/
│ ├── 404.ejs
│ ├── _data.json
│ ├── _footer.ejs
│ ├── _head.ejs
│ ├── _layout.ejs
│ ├── _nav.ejs
│ ├── browserconfig.xml
│ ├── css/
│ │ ├── _code.less
│ │ ├── _colors.less
│ │ ├── _fonts.less
│ │ ├── _footer.less
│ │ ├── _layout.less
│ │ ├── _misc.less
│ │ ├── _mixins.less
│ │ ├── _navbar.less
│ │ ├── _roboto-fonts.less
│ │ ├── _sidebar.less
│ │ ├── _site-top.less
│ │ └── main.less
│ ├── index.ejs
│ ├── js/
│ │ └── main.coffee
│ └── manifest.json
└── wercker.yml
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{.travis.yml,.travis-script.sh,*.json,*.coffee,*.less}]
indent_size = 2
[*.md]
trim_trailing_whitespace = false
================================================
FILE: .gitignore
================================================
.gradle
*.iml
*.keystore
/local.properties
private.properties
/.idea/
.DS_Store
/build
bin/
gen/
libs/
aarDependencies/
.project
.classpath
project.properties
*.swp
================================================
FILE: .travis-script.sh
================================================
#!/bin/bash
echo "TEST_TARGET=${TEST_TARGET}"
echo "TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
echo "TRAVIS_BRANCH=${TRAVIS_BRANCH}"
if [ "$TEST_TARGET" = "android" ]; then
# Release build type is only for Google Play store currently,
# which resolve dependency from Maven Central.
# This causes build errors while developing a new feature, so disable release build.
./gradlew --full-stacktrace assembleDevDebug :library:connectedCheck
elif [ "$TEST_TARGET" = "website" ]; then
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ ! -z "$GH_TOKEN" ]; then
echo "Update website..."
pushd website > /dev/null 2>&1
npm run deploy
popd > /dev/null 2>&1
fi
fi
================================================
FILE: .travis.yml
================================================
language: android
sudo: false
env:
global:
- GIT_COMMITTER_NAME=ksoichiro
- GIT_COMMITTER_EMAIL=soichiro.kashima@gmail.com
- GIT_AUTHOR_NAME=ksoichiro
- GIT_AUTHOR_EMAIL=soichiro.kashima@gmail.com
- secure: Iw0mIseFZ6M/HGi/ERPBT4fabx0G1OVeHCbu6ANoVybO8yHBRHHuUc4pdZOOtEi+Ce/4a5TPZXbGPIVMZrN1ewS3uDAHsEFjmtehsqjk5iKXapvy04dwLsX9jCsQNl0n5679tRZ2eXUGqyVSddc5pIyWwJAGgBmnM/SHDaRy4YA=
matrix:
- TEST_TARGET=android
- TEST_TARGET=website
cache:
directories:
- website/node_modules
- website/bower_components
install:
- true && ([ "$TEST_TARGET" != "website" ] || (cd website && npm install && cd ..))
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=tools)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=build-tools-23.0.2)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=android-19)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=android-21)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=android-22)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=android-23)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=sys-img-armeabi-v7a-android-19)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=extra-android-support)
- true && ([ "$TEST_TARGET" != "android" ] || android-update-sdk --accept-licenses='android-sdk-license-.+' --components=extra-android-m2repository)
before_script:
- true && ([ "$TEST_TARGET" != "android" ] || (echo no | android create avd --force -n test -t android-19 --abi default/armeabi-v7a))
- true && ([ "$TEST_TARGET" != "android" ] || emulator -avd test -no-skin -no-audio -no-window &)
- true && ([ "$TEST_TARGET" != "android" ] || android-wait-for-emulator)
script:
- "/bin/bash .travis-script.sh"
after_success:
- true && ([ "$TEST_TARGET" != "android" ] || ./gradlew :library:coveralls)
================================================
FILE: CONTRIBUTING.md
================================================
# Thank you for your contribution!
Any contributions will be greatly appreciated.
Before submitting a new issue, please check the following guideline.
## Describe your issue as much as possible
The library itself only provides the scroll information,
and creating awesome scrolling effects depends deeply on how you use it: layout, offset calculation to animate views, etc.
Therefore, if you find an issue, please describe not only the issue itself but also the following information:
### If you find it in the sample app of this project
* Required
* Activity name
* Operation to produce the issue
* Modified code
* If you modified some codes in the sample, it should be described with modified codes
* Preferred
* Version (git commit hash) of the codes
* Android OS version
* device
* Nexus5, x86 emulator, etc.
### If you find it in your app
* Required
* Operation to produce the issue
* Related code
* Without the related codes, I can't say anything.
Screenshot / movie is useful to understand the issue,
but not enough to discuss the cause of the issue.
* Preferred
* Version of the library
* Android OS version
* device
* Nexus5, x86 emulator, etc.
================================================
FILE: LICENSE.txt
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================
FILE: README.md
================================================
# Android-ObservableScrollView
[](https://travis-ci.org/ksoichiro/Android-ObservableScrollView)
[](https://coveralls.io/r/ksoichiro/Android-ObservableScrollView?branch=master)
[](https://github.com/ksoichiro/Android-ObservableScrollView/releases/latest)
[](https://android-arsenal.com/api?level=9)
[](https://android-arsenal.com/details/1/1136)
Android library to observe scroll events on scrollable views.
It's easy to interact with the Toolbar introduced in Android 5.0 Lollipop and may be helpful to implement look and feel of Material Design apps.












## Examples
### Download from Google Play
Please note that the app on the Play store is not always the latest version.
### Download from wercker
If you are a wercker user, you can download the latest build artifact.
[See here for details](docs/example/wercker.md).
[](https://app.wercker.com/project/bykey/8d1e27d9f4a662b25dbe70402733582b)
### Install manually
Just clone and execute `installDevDebug` task with Gradle.
[See here for details](docs/example/android-studio.md).
## Usage
1. Add `com.github.ksoichiro:android-observablescrollview` to your `dependencies` in `build.gradle`.
1. Add `ObservableListView` or other views you'd like to use.
1. Write some animation codes to the callbacks such as `onScrollChanged`, `onUpOrCancelMotionEvent`, etc.
See [the quick start guide for details](docs/quick-start/index.md),
and [the documentation](docs/overview.md) for further more.
## Reference
* [Supported widgets](docs/reference/supported-widgets.md)
* [Environment](docs/reference/environment.md)
* [Release notes](docs/reference/release-notes.md)
* [FAQ](docs/faq.md)
## Apps that use this library
[](http://www.libtastic.com/technology/4/)
* [Jair Player](https://play.google.com/store/apps/details?id=aj.jair.music) by Akshay Chordiya
* [My Gradle](https://play.google.com/store/apps/details?id=se.project.generic.mygradle) by Erick Chavez Alcarraz
* [ThemeDIY](https://play.google.com/store/apps/details?id=net.darkion.theme.maker) by Darkion Avey
* [{Soft} Skills](https://play.google.com/store/apps/details?id=com.fanaticdevs.androider) by Fanatic Devs
If you're using this library in your app and you'd like to list it here,
please let me know via [email](mailto:soichiro.kashima@gmail.com) or [pull requests](https://github.com/ksoichiro/Android-ObservableScrollView/pulls) or [issues](https://github.com/ksoichiro/Android-ObservableScrollView/issues).
## Contributions
Any contributions are welcome!
Please check the [FAQ](docs/faq.md) and [contributing guideline](https://github.com/ksoichiro/Android-ObservableScrollView/tree/master/CONTRIBUTING.md) before submitting a new issue.
## Developed By
* Soichiro Kashima - [soichiro.kashima@gmail.com](mailto:soichiro.kashima@gmail.com)
## Thanks
* Inspired by `ObservableScrollView` in [romannurik-code](https://code.google.com/p/romannurik-code/).
## License
```license
Copyright 2014 Soichiro Kashima
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
================================================
FILE: build.gradle
================================================
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.ksoichiro:gradle-eclipse-aar-plugin:0.1.1'
// Related issue: https://code.google.com/p/android/issues/detail?id=192875
classpath 'org.jacoco:org.jacoco.core:0.7.5.201505241946'
}
}
allprojects {
group = GROUP
version = VERSION_NAME
repositories {
mavenCentral()
}
}
subprojects {
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.1.0'
}
}
}
apply plugin: 'com.github.ksoichiro.eclipse.aar'
eclipseAar {
projectNamePrefix = 'observablescrollview-'
cleanLibsDirectoryEnabled = true
}
================================================
FILE: docs/_data.json
================================================
{
"overview": {
"title": "Overview"
},
"faq": {
"title": "FAQ"
}
}
================================================
FILE: docs/_layout.ejs
================================================
Lorem ipsum dolor sit amet, ut duis lorem provident sed felis blandit, condimentum donec lectus ipsum et mauris, morbi porttitor interdum feugiat nulla donec sodales, vestibulum nisl primis a molestie vestibulum quam, sapien mauris metus risus suspendisse magnis. Augue viverra nulla faucibus egestas eu, a etiam id congue rutrum ante, arcu tincidunt donec quam felis at ornare, iaculis ligula sodales venenatis commodo volutpat neque, suspendisse elit praesent tellus felis mi amet. Inceptos amet tempor lectus lorem est non, ac donec ac libero neque mauris, tellus ante metus eget leo consequat. Scelerisque dolor curabitur pretium blandit ut feugiat, amet lacus pulvinar justo convallis ut, sed natoque ipsum urna posuere nibh eu. Sed at sed vulputate sit orci, facilisis a aliquam tellus quam aliquam, eu aliquam donec at molestie ante, pellentesque mauris lorem ultrices libero faucibus porta, imperdiet adipiscing sit hac diam ut nulla. Lacus enim elit pulvinar donec vehicula dapibus, accumsan purus officia cursus dolor sapien, eu amet dis mauris mi nulla ut. Non accusamus etiam pede non urna tempus, vestibulum aliquam tortor eget pharetra sodales, in vestibulum ut justo orci nulla, lobortis purus sem semper consectetuer magni purus. Dolor a leo vestibulum amet ut sit, arcu ut eaque urna fusce aliquet turpis, sed fermentum sed vestibulum nisl pede, tristique enim lorem posuere in laborum ut. Vestibulum id id justo leo nulla, magna lobortis ullamcorper et dignissim pellentesque, duis suspendisse quis id lorem ante. Vivamus a nullam ante adipiscing amet, mi vel consectetuer nunc aenean pede quisque, eget rhoncus dis porttitor habitant nunc vivamus, duis cubilia blandit non donec justo dictumst, praesent vitae nulla nam pulvinar urna. Adipiscing adipiscing justo urna pulvinar imperdiet nullam, vitae fusce rhoncus proin nonummy suscipit, ullamcorper amet et non potenti platea ultrices, mauris nullam sapien nunc justo vel, eu semper pellentesque arcu fusce augue. Malesuada mauris nibh sit a a scelerisque, velit sem lectus tellus convallis consectetuer, ultricies auctor a ante eros amet sed.
Risus lacus duis leo platea wisi, felis maecenas rutrum in id in donec, non id a potenti libero eget, posuere elit ea sed pellentesque quis. Sunt lacus urna lorem elit duis, nibh donec purus quisque consectetuer dolor, neque vestibulum proin ornare eros nonummy phasellus. Iaculis cras eu at egestas dolor montes, viverra quisque malesuada consectetuer semper maecenas, a sed vitae donec tempor aliqua metus, ornare mollis suscipit et erat fusce, sit orci aut auctor elementum fames aliquam. Platea dui integer magnis non metus, minus dignissimos ante massa nostra et, rutrum sapien egestas quis sapien donec donec. Erat sit a eros aenean natoque, quam libero id lorem enim proin, lorem ipsum fermentum mattis metus et. Aliquam aliquet suscipit purus conubia at neque, platea vivamus vestibulum nulla quibusdam senectus, et morbi lectus malesuada gravida donec, elementum sit convallis pellentesque velit amet. Et eveniet viverra vehicula consectetuer justo, provident sed commodo non lacinia velit, tempor phasellus vel leo nisl cras, vivamus et arcu interdum dui eu amet. Volutpat wisi rhoncus vel turpis diam quibusdam, dapibus elit est quisque cubilia mauris, nulla elit magna tempor accumsan bibendum, lorem varius sed interdum eget mattis, scelerisque egestas feugiat donec dui molestie. Leo facilisis nisl sit montes ligula sed, enim commodo consectetuer nunc est et, ut sed vehicula dolor luctus elit. Fermentum cras donec eget nibh est vel, sed justo risus et pharetra diam, eu vivamus egestas ligula risus diam, sed justo eget hac ut mauris. Vestibulum diam nec vitae mi eget suspendisse, aenean arcu purus facilisis purus class in, id aliquam sit id scelerisque sapien etiam. Ut nullam sit sed at mauris lobortis, consequat dolor autem ipsum euismod nulla, elit quis proin eget conubia varius, erat arcu massa mus in mauris, scelerisque ut eu sollicitudin libero leo urna.
Consectetuer luctus tempor elit ut dolor ligula, quis dui per dui hendrerit ante sagittis, in quisque pretium in eleifend enim. Condimentum iaculis vitae feugiat dis tellus vel, lectus dolor nec dui nulla nascetur, et pellentesque curabitur lorem leo velit eget. Id nascetur arcu lobortis suspendisse imperdiet urna, natoque nascetur ante in porta a, interdum hendrerit mi bibendum platea tellus, urna in enim ornare vestibulum faucibus enim. Leo fusce egestas ante nec volutpat, in tempor vel facilisis potenti ut, pede at non lorem a commodo, nulla dolor orci interdum vestibulum nulla. Dui nulla vestibulum quisque a pharetra porta, integer nec ipsum nec sed dui pharetra, magna et dignissim ipsum sed dictum, litora eros vivamus scelerisque libero ipsum. Sed ac ac lorem molestie adipiscing morbi, pellentesque imperdiet nunc quis morbi amet ante, libero dui ligula nec risus neque et, velit nonummy phasellus et facilisi amet, ligula in elementum non sapien pulvinar faucibus. Eu leo ut posuere sed aliquet, tincidunt vel urna volutpat tempus sem, sit felis aliquet vestibulum condimentum sit, amet nibh vel tellus purus ullamcorper libero, nulla vestibulum pede ut vestibulum pretium. Eu nulla vestibulum a neque in metus, quisquam nam sed cursus eget luctus, pede ultrices nec sed dignissim pellentesque, sit class cursus metus nulla placerat mauris, consequat mollis neque vivamus amet pede. Mauris dolor nulla diam eros bibendum, quam ante vestibulum morbi non ligula vel, molestie curabitur rhoncus nulla euismod interdum non. Nulla fringilla lorem mollis ad massa, sit molestie nibh lorem arcu volutpat, accumsan commodo lectus eu et donec, sit tempor tempus rutrum in curabitur amet. Nec urna euismod a tincidunt commodo, eu pede turpis libero vitae viverra, ante vestibulum nam non habitasse potenti, mauris imperdiet in in nunc convallis. Et nostra wisi in est accumsan vehicula, quisque vitae felis mauris sed vulputate nec, ante imperdiet sollicitudin massa iaculis massa sit.
Quam libero nulla netus eu porta curae, ut nulla bibendum facilisis et urna sed, quis congue vestibulum aliquam interdum etiam. Nulla vel lobortis ullamcorper vitae excepturi, neque urna feugiat lectus vel lacinia, massa pretium orci eu metus neque vulputate. Imperdiet ac velit rhoncus nulla malesuada nullam, nec pulvinar justo gravida lorem rutrum magna, habitasse repudiandae mi eros vestibulum ante, nec euismod dui iaculis in turpis pretium, ac id metus egestas proin lacus lectus. Laoreet lorem nec vitae risus erat arcu, vitae quam ut in ante tristique, porta dolor pede quam et odio nam, arcu lacus sem congue ante cursus massa. Et mattis sagittis erat accumsan fusce quam, vehicula ligula beatae natoque fusce sodales conubia, habitasse metus cum magnis viverra nam cursus, egestas urna wisi primis blandit eu magna, eget libero elit lacus lorem dis aliquam. Ut mauris ante natoque lacus massa, justo a lectus sodales enim adipiscing id, accumsan ut ipsum vestibulum sed enim auctor, vitae congue tincidunt id phasellus lacinia scelerisque, tincidunt sapien nulla euismod volutpat iaculis. Platea sociis nec aliquet nec molestie, in mi et augue sapien in vivamus, integer fames proin vitae in ullamcorper et. Fringilla etiam sapiente rhoncus suspendisse nec id, lobortis cras eget egestas dui ac nec, justo lacus ut lorem bibendum quia eros, eget a gravida id donec nunc suscipit, porta sed in sodales non rutrum. Lectus vel dui elementum pellentesque magna aliquam, vitae non sit pede et fusce nibh, id id deserunt ornare dui sit condimentum, in adipiscing imperdiet turpis nam aliquet, facilisis metus magna lacus wisi facilisis tortor. Vulputate elit accumsan quam amet ligula, suspendisse lacus mi nonummy integer urna, libero nulla nunc varius in odio, laoreet nulla amet placerat amet nec. Consectetuer vel massa hendrerit vitae iaculis id, sed ut ut laudantium odio in, elit vestibulum duis ante maecenas interdum in, neque vehicula ultrices varius in quam, pede tellus pellentesque sed nullam quis.