Giter Site home page Giter Site logo

Comments (4)

SundeepK avatar SundeepK commented on May 4, 2024

The calendar was designed to be used with a set height/width. though, typically only the height really needs to be set. This is because it needs to know before hand how to draw items onto the paint object. There's no code to handle wrap_content, because there's nothing to wrap inside. wrap_content makes sense when there's content inside a view that you control, for example, a TextView. Since there's text inside, it will automatically measure how far it needs to extends height/width.

I suggest you try setting the height directly, it will use the screen density, so it should look the same across screens.

Thanks for the offer for donations :), but it's not required. If enough people want to donate, I can add something further to facilitate for that. But otherwise, enjoy free code.

from compactcalendarview.

EndzeitBegins avatar EndzeitBegins commented on May 4, 2024

Thanks for the quick response. That's reasonable. I'll set the height to a pre-defined height again. I just was hoping that the view would shrink accordingly to it's actual height when there're only four rows for the week instead of six for example.

Are you working one the side-scrolling behavior to behave more like a ViewPager? Sometimes it works like a charm but when one's sliding more slowly it get's stuck in between two months and the listener for the month change isn't fired, even after fully scrolling over to the next month. I know there's an open issue about this, but I'm not sure if you were still working on it.

Thanks nonetheless for this amazing widget. And I have to apologize for my bad english. :D

from compactcalendarview.

SundeepK avatar SundeepK commented on May 4, 2024

I just was hoping that the view would shrink accordingly to it's actual height when there're only four rows for the week instead of six for example.

That's an entirely different issue if that's what your after. Basically, the calendar right now is stuck at a specific height and doesn't resize if the number of days in the calendar is much less.

Are you working one the side-scrolling behavior to behave more like a ViewPager? Sometimes it works like a charm but when one's sliding more slowly it get's stuck in between two months and the listener for the month change isn't fired, even after fully scrolling over to the next month. I know there's an open issue about this, but I'm not sure if you were still working on it.

I plan to release this as a beta when I get time. I also am working on an open/close functionality on the calendar so that people don't have to embed the calendar into the toolbar (although it won't stop you if you want too.).This way it will resize the height of the view when you want to show or hide it.

Unfortunately, I haven't invested much time embedding the calendar in the toolbar, but there is a ticket which has a forked copy of the code to show how it can be done. It looks good from what I saw.

from compactcalendarview.

Fuhrmann avatar Fuhrmann commented on May 4, 2024

@EndzeitBegins Did you get this working? How was your solution?

from compactcalendarview.

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.