arthur3486 / bottomsheets Goto Github PK
View Code? Open in Web Editor NEWMaterial Bottom Sheets library for Android
License: Apache License 2.0
Material Bottom Sheets library for Android
License: Apache License 2.0
I was confused to pass data from activity to bottom sheet before showing it. I tried to use inside constructor and using setter method but it failed. Thanks in advanced
Hi,
Your Reply will be appreciated, I want to get onShowListener like onDismissListener
Can you please guide about this.
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
Is it possible to change the background color or set the background image for all bottomsheets?
I don't want to use the custom view and I want the other variants to be customized
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.