Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miguelhincapie/CustomBottomSheetBehavior
Custom BottomSheetBehavior for Android that mimic Google Maps behavior
https://github.com/miguelhincapie/CustomBottomSheetBehavior
android bottomsheetbehavior google-maps parallax-image stackoverflow
Last synced: 2 months ago
JSON representation
Custom BottomSheetBehavior for Android that mimic Google Maps behavior
- Host: GitHub
- URL: https://github.com/miguelhincapie/CustomBottomSheetBehavior
- Owner: miguelhincapie
- License: apache-2.0
- Created: 2016-05-25T02:30:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-14T10:01:14.000Z (over 3 years ago)
- Last Synced: 2024-08-03T22:22:59.967Z (6 months ago)
- Topics: android, bottomsheetbehavior, google-maps, parallax-image, stackoverflow
- Language: Java
- Homepage:
- Size: 7.88 MB
- Stars: 912
- Watchers: 23
- Forks: 184
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - miguelhincapie/CustomBottomSheetBehavior - Custom BottomSheetBehavior for Android that mimic Google Maps behavior (Java)
README
# CustomBottomSheetBehavior like Google Maps for Android [ ![Download](https://api.bintray.com/packages/mahc/maven/CustomBottomSheetBehavior/images/download.svg) ](https://bintray.com/mahc/maven/CustomBottomSheetBehavior/_latestVersion)
Android Studio Project using Support Library focused on get Google Maps 3 states behavior including background image parallax and toolbars animations.## Installation
In your module/project build.gradle file add
```
dependencies {
...
implementation 'com.mahc.custombottomsheetbehavior:googlemaps-like:0.9.1'
}
```## Usage
[![CustomBottomSheetBehavior](https://raw.githubusercontent.com/akan44/CustomBottomSheetBehavior/master/CustomBottomSheetBehaviorLikeGoogleMaps3states.gif)][Wiki under construction](https://github.com/miguelhincapie/CustomBottomSheetBehavior/wiki) but still with some info already, until I complete it you can take a look at the example (app module).
### Check the following files
* [activity_main.xml](https://github.com/miguelhincapie/CustomBottomSheetBehavior/blob/master/app/src/main/res/layout/activity_main.xml) (is like a template)
* [activity_main.java](https://github.com/miguelhincapie/CustomBottomSheetBehavior/blob/master/app/src/main/java/com/mahc/custombottomsheet/MainActivity.java) (you can see how to listen for states)
* [styles.xml](https://github.com/miguelhincapie/CustomBottomSheetBehavior/blob/master/app/src/main/res/values/styles.xml) (just the line )
* [AndroidManifest.xml](https://github.com/miguelhincapie/CustomBottomSheetBehavior/blob/master/app/src/main/AndroidManifest.xml) (just the line android:theme="@style/AppTheme.NoActionBar")## What I did?
1. I took the code from BottomSheetBehavior.java from Support Library 23.4.0 and added one state for anchor mode, so now you have:<br>
STATE_HIDDEN<br>
STATE_COLLAPSED<br>
STATE_DRAGGING<br>
STATE_ANCHOR_POINT<br>
STATE_EXPANDED.<br><br>2. Created Behaviors for FAB, ToolBars and ImageView.
## Motivation
Spend more than 3 days looking snipet of code or stackoverflow answers about it with no luck.## Current state
Trying to help/close issues.## Contributing
Do you want to help?
Wanna improve it?
Go ahead! you can start in issues page<br>## Question about it in StackOverflow
If you like this project give me a vote up at:<br> [Sliding up image with Official Support Library 23.x.+ bottomSheet like google maps](http://stackoverflow.com/q/37335366/1332549).<br>
Related questions:<br>
[Android Support BottomSheetBehavior additional anchored state](http://stackoverflow.com/questions/36963798/android-support-bottomsheetbehavior-additional-anchored-state)<br>
[How to mimic Google Maps' bottom-sheet 3 phases behavior?](http://stackoverflow.com/questions/34160423/how-to-mimic-google-maps-bottom-sheet-3-phases-behavior/34176633?noredirect=1#comment56361295_34176633)<br>
[Sliding BottomSheet like google map](http://stackoverflow.com/questions/34310530/sliding-bottomsheet-like-google-map)<br>
[How to create bottom sheet effect which cover full activity when user scrolls up](http://stackoverflow.com/questions/35900862/how-to-create-bottom-sheet-effect-which-cover-full-activity-when-user-scrolls-up)<br>
[How to make custom CoordinatorLayout.Behavior with parallax scrolling effect for google MapView?](http://stackoverflow.com/questions/33945085/how-to-make-custom-coordinatorlayout-behavior-with-parallax-scrolling-effect-for)<br>
[How to handle issues of the new bottom sheet of the support/design library?](http://stackoverflow.com/questions/35971546/how-to-handle-issues-of-the-new-bottom-sheet-of-the-support-design-library)<br>
[Open an activity or fragment with Bottom Sheet Deep Linking](http://stackoverflow.com/questions/34243928/open-an-activity-or-fragment-with-bottom-sheet-deep-linking)<br>
[BottomSheetDialogFragment - How to set expanded height (or min top offset)](http://stackoverflow.com/questions/36030879/bottomsheetdialogfragment-how-to-set-expanded-height-or-min-top-offset)## Credits
* [Paul-Marie Tetedoie](https://github.com/akaN44)
* [Vit Hradecky](https://github.com/vit001)## License
Licensed under the Apache License, Version 2.0
<br><br>
The true is I don't care about license... JUST USE IT, improve it if you can and give me vote up in stack overflow :D.<a href="http://stackoverflow.com/users/1332549/miguelhincapiec">
<img src="http://stackoverflow.com/users/flair/1332549.png" width="208" height="58" alt="profile for MiguelHincapieC at Stack Overflow, Q&A for professional and enthusiast programmers" title="profile for MiguelHincapieC at Stack Overflow, Q&A for professional and enthusiast programmers">
</a><br><br>
<a class="LI-simple-link" href="https://www.linkedin.com/in/miguelhincapie">
<img width="208" height="58" src="https://content.linkedin.com/content/dam/me/business/en-us/amp/brand-site/v2/bg/LI-Logo.svg.original.svg">
</a>