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
923 stars 77 forks source link

Make it possible to add own view as animation / image #85

Closed GraxCode closed 3 years ago

GraxCode commented 3 years ago

I have a View that displays an animated illustration. I would like to add it to a sheet.

GraxCode commented 3 years ago

Of course, I could make a custom sheet, but an easier solution would be to make InfoSheet extendable, or a function to add a view.

maxkeppeler commented 3 years ago

This is totally independent of the cover-image/ cover-animation view, am I right with that? Where/ how do you want to display this ImageView? What kind of animation view is that - Lottie?

GraxCode commented 3 years ago

It's a custom view with TextView, ImageView etc.

I was looking for a way to add the view and found that it's possible to use InputCustom in InputDialog. Except, it doesn't function as an input, but more as some visual information between other text. I don't know if you want to make a better solution or keep it like that. Issue #86 emerged because of that, as my view now is slightly off to the right, as the parent view is padded.

maxkeppeler commented 3 years ago

Ah I understand. I will work on the other issue. I will add a method to add a custom view to the InfoSheet as well.

maxkeppeler commented 3 years ago

Custom views can now be used with the InfoSheet. They replace the default view. I close this and the other padding issue, as this fixes both.