maxkeppeler / sheets

⭐ ‎‎‎‏‏‎ ‎Offers a range of beautiful sheets (dialogs & bottom sheets) for quick use in your project. Includes many ways to customize sheets.
https://maxkeppeler.github.io/sheets/
Apache License 2.0
921 stars 77 forks source link

customView should not block content from working. #95

Closed GraxCode closed 2 years ago

GraxCode commented 2 years ago

When I use customView(), content() text does not display anymore.

maxkeppeler commented 2 years ago

The provided Infosheet texts are gone as you replace it with a custom view. Either use a custom view or the default InfoSheet with its look/ TextViews. It behaves as it should.

GraxCode commented 2 years ago

Do drawables behave the same way? As far as I know, they don't seem to: https://github.com/maxkeppeler/sheets/blob/main/art/InfoSheet%20Dialog%20Cover%20TopStyle%20Top.png I intended to use the custom view as a view for an item in my game, while above it there is a description. Of course, i could add a TextView, but as InfoSheet already has a content() method I don't really understand this design choice.

maxkeppeler commented 2 years ago

No. The drawables and the image are views that are within the cover view, which is displayed above the content view of the sheet. If you add them, they are displayed, otherwise not. With contentView you can replace the content, where normally the info drawable, info text and so on is placed. If you want to use those standard components, don't replace the view. If you have specific needs, you can just build upon a Sheet and build your own.