Comments (7)
how can i solve it?
from bottomsheetmenu.
I'm not sure if this is a bug or a feature request.
from bottomsheetmenu.
I'm trying to modify like this:
window.setLayout(width <= 0 ? ViewGroup.LayoutParams.MATCH_PARENT : width, mBuilder.view != null ? ViewGroup.LayoutParams.MATCH_PARENT : ViewGroup.LayoutParams.WRAP_CONTENT);
and this is custom view layout:
View view = LayoutInflater.from(getContext())
.inflate(R.layout.bottom_sheet_custom_layout, null);
view.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
dismiss();
}
});
CollapsingView collapsingView = (CollapsingView) view.findViewById(R.id.collapsingView);
collapsingView.setCollapseListener(this);
mBuilder.view.setBackgroundColor(ta.getColor(0, Color.WHITE));
collapsingView.addView(mBuilder.view);
setContentView(view);
from bottomsheetmenu.
You don't need to add a CollapsingView to your custom layout. It will automatically be wrapped when created https://github.com/Kennyc1012/BottomSheet/blob/master/library/src/main/java/com/kennyc/bottomsheet/BottomSheet.java#L212
from bottomsheetmenu.
I know, i just find the animation of bottom show is not correct sometimes,It's a bit unstable.
from bottomsheetmenu.
Any chance of seeing an example, a video perhaps?
from bottomsheetmenu.
Fixed in 2.4.1
from bottomsheetmenu.
Related Issues (20)
- Set click listener for customview buttons HOT 2
- Bottom sheet with lot of content will cover whole screen? HOT 2
- hey HOT 9
- Unable to set background for custom view HOT 2
- The exit animation often blocked when press the back button. HOT 2
- Open keyboard on custom layout with edittext HOT 1
- BottomSheet not anchoring to bottom of screen HOT 2
- Failed to resolve HOT 1
- There is a problem HOT 1
- how to show menu in State_Expanded when bottom sheet is shown in landscape mode? HOT 2
- Error when building project "bottom_sheet_list_item_color_dark not found HOT 1
- Impossible to change font size? HOT 1
- MinSdk 19 is required HOT 1
- Crash on rotation
- More than one file was found with OS independent path 'META-INF/library_release.kotlin_module'.
- Crash On Rotation
- QUERY_ALL_PACKAGES permission HOT 4
- Crash when app goes to background HOT 1
- How to hide item menu
- Top padding remains visible after we define empty title HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bottomsheetmenu.