Giter VIP home page Giter VIP logo

Comments (12)

HannahMitt avatar HannahMitt commented on July 3, 2024

I was planning to add some of that functionality to my fork. I had it on an old hacked together version but I'm rewriting it to be a fair bit cleaner

from android-times-square.

JakeWharton avatar JakeWharton commented on July 3, 2024

I'm thinking that we could do a cell selection listener that returned a
boolean on whether to allow the selection to be persisted or not. If you
wanted to launch a confirmation dialog you would return false and then upon
completion, mark the date as selected manually.
On Jan 11, 2014 1:53 PM, "Hannah Mittelstaedt" [email protected]
wrote:

I was planning to add some of that functionality to my fork. I had it on
an old hacked together version but I'm rewriting it cleaner


Reply to this email directly or view it on GitHubhttps://github.com//issues/99#issuecomment-32108326
.

from android-times-square.

dnldd avatar dnldd commented on July 3, 2024

Yeah, exposing the an on-click listener for date cells would be very useful. This would allow showing a more detailed view via an activity or fragment for a selected cell/date. Is this feature scheduled for a future release?

from android-times-square.

edenman avatar edenman commented on July 3, 2024

@dnldd we don't have any immediate plans for this. If you want to build something like @JakeWharton described, we'll happily consider merging it!

from android-times-square.

dnldd avatar dnldd commented on July 3, 2024

I'm going to peruse the codebase and have a go at it. Will keep you posted.

from android-times-square.

dnldd avatar dnldd commented on July 3, 2024

Guys, it happens this feature has been already implemented. All that is needed is to implement the OnDateSelectedListener interface and set the listener to via setOnDateSelectedListener after initializing CalendarPickerView.

from android-times-square.

edenman avatar edenman commented on July 3, 2024

@dnldd I think we're talking about a different feature in this issue. Glad the OnDateSelectedListener works for your needs!

from android-times-square.

ajma avatar ajma commented on July 3, 2024

+1 for this.

from android-times-square.

edenman avatar edenman commented on July 3, 2024

This fix is on master. We'll do a release soon.

from android-times-square.

trofimchyk avatar trofimchyk commented on July 3, 2024

Is it possible to get cell view I was clicked?

from android-times-square.

edenman avatar edenman commented on July 3, 2024

@trofimchyk not as currently implemented. PRs welcome. You'd have to add the View as a param on MonthView.Listener#handleClick

from android-times-square.

trofimchyk avatar trofimchyk commented on July 3, 2024

@edenman it works. Thank you!

from android-times-square.

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.