Code Monkey home page Code Monkey logo

custombottomsheetbehavior's Introduction

CustomBottomSheetBehavior like Google Maps for Android Download

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]

Wiki under construction but still with some info already, until I complete it you can take a look at the example (app module).

Check the following files

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:
    STATE_HIDDEN
    STATE_COLLAPSED
    STATE_DRAGGING
    STATE_ANCHOR_POINT
    STATE_EXPANDED.

  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

Question about it in StackOverflow

If you like this project give me a vote up at:
Sliding up image with Official Support Library 23.x.+ bottomSheet like google maps.
Related questions:
Android Support BottomSheetBehavior additional anchored state
How to mimic Google Maps' bottom-sheet 3 phases behavior?
Sliding BottomSheet like google map
How to create bottom sheet effect which cover full activity when user scrolls up
How to make custom CoordinatorLayout.Behavior with parallax scrolling effect for google MapView?
How to handle issues of the new bottom sheet of the support/design library?
Open an activity or fragment with Bottom Sheet Deep Linking
BottomSheetDialogFragment - How to set expanded height (or min top offset)

Credits

License

Licensed under the Apache License, Version 2.0

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.

profile for MiguelHincapieC at Stack Overflow, Q&A for professional and enthusiast programmers



Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.