https://github.com/saantiaguilera/android-view-pull-down-layout
Local notification with pull down for content
https://github.com/saantiaguilera/android-view-pull-down-layout
Last synced: about 2 months ago
JSON representation
Local notification with pull down for content
- Host: GitHub
- URL: https://github.com/saantiaguilera/android-view-pull-down-layout
- Owner: saantiaguilera
- License: mit
- Created: 2016-07-12T19:51:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-17T01:48:36.000Z (about 9 years ago)
- Last Synced: 2025-01-27T13:10:48.506Z (8 months ago)
- Language: Kotlin
- Size: 186 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pull Down View
Usage. Somewhere around your app. Having a reference of an activity (Else we dont have where to inject this notification)
```Java
new PullDownView.Builder(activityReference)
.header(aViewThatWillBeShownAsHeader)
.content(aViewThatWillBeShownAsContent)
.onViewVisibilityChanged(toReceiveCallbacksFromImportantEvents)
.onContentVisibilityChanged(toReceiveCallbacksFromImportantEvents)
.build().showHeader(theTimeThatWillBeShown);//If you hold the instance you can also do manually
mPullDownView.showContent();
mPullDownView.hideContent();
mPullDownView.hideHeader();
mPullDownView.showHeader(); //Same as the one with the time, when time is 0
```Minimum Api Level: 11