Coder Social home page Coder Social logo

Comments (7)

caoyy avatar caoyy commented on July 29, 2024 1

how can i solve it?

from bottomsheetmenu.

Kennyc1012 avatar Kennyc1012 commented on July 29, 2024

I'm not sure if this is a bug or a feature request.

from bottomsheetmenu.

jianghao1123 avatar jianghao1123 commented on July 29, 2024

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:
2

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.

Kennyc1012 avatar Kennyc1012 commented on July 29, 2024

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.

jianghao1123 avatar jianghao1123 commented on July 29, 2024

I know, i just find the animation of bottom show is not correct sometimes,It's a bit unstable.

from bottomsheetmenu.

Kennyc1012 avatar Kennyc1012 commented on July 29, 2024

Any chance of seeing an example, a video perhaps?

from bottomsheetmenu.

Kennyc1012 avatar Kennyc1012 commented on July 29, 2024

Fixed in 2.4.1

from bottomsheetmenu.

Related Issues (20)

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.