Giter Site home page Giter Site logo

arthur3486 / bottomsheets Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 12.0 17.12 MB

Material Bottom Sheets library for Android

License: Apache License 2.0

Kotlin 40.27% Java 59.73%
android android-bottomsheet android-library android-ui bottomsheets java kotlin material material-design material-ui ui view viewgroup

bottomsheets's People

Contributors

arthur3486 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bottomsheets's Issues

There is no onShowListener

Hi,
Your Reply will be appreciated, I want to get onShowListener like onDismissListener
Can you please guide about this.

Error implementing the example

Trying to implement the example in the readme,

class MainActivity : AppCompatActivity() {

    private var bottomSheet : BottomSheet? = null

    private fun showActionsBottomSheet() {
        bottomSheet = ActionPickerBottomSheet.init(
            this,
            getActionOptions().map(::ActionItem),
            Config.Builder(this).build()
        )
        bottomSheet.setOnItemSelectedListener { 
            // do something...
        }
        bottomSheet.show()
    }

    fun getActionOptions() : List<Option> {
        // your options
    }

}

But the error appears:
Smart cast to 'ActionPickerBottomSheet' is impossible, because 'bottomSheet' is a mutable property that could have been changed by this time

BottomSheet Dismiss Issue

Hi ,
This is a great Library :)
I have one issue in dismissing the Bottomsheet on clicking outside it.
How do it prevent it from dismiss when clicked outside.

Supertypes of the following classes cannot be resolved

It keeps showing the following error when i use the Action Picker Implementation

Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.arthurivanets.bottomsheets.sheets.adapters.actionpicker.ActionItem, unresolved supertypes: com.arthurivanets.adapster.model.markers.Trackable class com.arthurivanets.bottomsheets.sheets.adapters.actionpicker.BaseActionItem, unresolved supertypes: com.arthurivanets.adapster.model.BaseItem

Activity blinking wneh dialog dismissed with animation.

In Xiaomi devices, when dialog was closed with animation, activity blink's with black color for few milliseconds. The solution to fix this its just diable animation on close, and it works. But when you enable "dismissOnTouchOutside" you cannod disable animation, cause you cant override this method, so its again blinking.
screenrecord_14 06 2020_21 30 18

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.