Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    fncapps
    @fncapps
    I get it know
    I was a bit confused sorry
    I'm going to test it
    Pratyush Verma
    @p-v
    Actually I haven't documented it properly. Will work on the documentation soon. Also there are support library 23.2 issues which I need to work on.
    fncapps
    @fncapps
    I've read about those issues... I'm still waiting to add 23.2 because of them haha
    Pratyush Verma
    @p-v
    I have used this library in one of my company projects. Will have to fix those issues surely someday :laughing:
    fncapps
    @fncapps
    Finally it works!
    Just a little thing more, where is the cell stroke defined? I want to removed
    it
    remove it, sorry
    Pratyush Verma
    @p-v
    :clap:
    experiment with onDraw to modify the cell states. i.e. what has to be done if a weekend was selected.
    To remove the cell stroke go inside the background xml. I think I have given a 2dp width there.
    fncapps
    @fncapps
    I see, thanks
    I haven't coded any widget in Android, so I was a bit lost
    sathishspnr
    @sathishspnr
    Hi
    Pratyush Verma
    @p-v
    Hello
    sathishspnr
    @sathishspnr
    Thanks for the nice lib..
    Pratyush Verma
    @p-v
    You are most welcome. :blush:
    sathishspnr
    @sathishspnr
    Hi ,...How to disable dates before today date
    Pratyush Verma
    @p-v
    Do you mean scrolling before the current month? If so, then its not supported yet.
    sathishspnr
    @sathishspnr
    How to set minimum date in this calendar
    Pratyush Verma
    @p-v
    There is no way to set minimum date currently.
    sathishspnr
    @sathishspnr
    ok thank you
    Pratyush Verma
    @p-v
    I might add it soon since I need it in one of my projects. :smile:
    Nidhi
    @Nidhee
    @p-v hi
    Premvenkat
    @Premvenkat
    hi
    Premvenkat
    @Premvenkat
    can't able to move particular date. it only move previous or next month only
    how can i set AutoDateSelection in flexible calendarview
    Pratyush Verma
    @p-v
    @Premvenkat You can disable auto date selection on month change by using FlexibleCalendarView#disableAutoDateSelection method or through xml by using disableAutoDateSelection
    Nidhi
    @Nidhee
    @p-v i am selecting a date for example - 11/08/2017, on month change it keeps 11th date selected for other months too. how to remove that selection
    Premvenkat
    @Premvenkat
    thank you @p-v
    I solve that problem by using selectDate method in calendarview, thanks for your help @p-v
    Nidhi
    @Nidhee
    @Premvenkat hi can you help in my issue
    Premvenkat
    @Premvenkat
    @Nidhee you can use
    setOnDateClickListener in your calendarview
    calendarView.setOnDateClickListener(new FlexibleCalendarView.OnDateClickListener() {
    @Override
    public void onDateClick(int year, int month, int day) {
    }
    });
    Nidhi
    @Nidhee
    @Premvenkat how can i remove selection using onDateClick
    Pratyush Verma
    @p-v

    @p-v i am selecting a date for example - 11/08/2017, on month change it keeps 11th date selected for other months too. how to remove that selection

    You must be doing something wrong. Make sure you have implemented EventDataProvider correctly

    @PascalLzx Thats just an example to show the events on the calendar. In practice, you will use a better key to map your events to a date. You can use midnight timestamp or some unique value generated using day, month and year. Set the EventDataProvider using FlexibleCalendarView#setEventDataProvider and use the key to retrieve the events from for a particular day.

    For updating your event set on button click you can call,

    eventMap.put(someUniqueKeyForAParticularDay, yourListOfEvents);
    // Don’t forget to refresh the FlexibleCalendarView after you update the event set.
    calendarView.refresh();

    For retrieving,

    class MyEventDataProvider implements FlexibleCalendarView.EventDataProvider{
        @Override
        public List<? extends Event> getEventsForTheDay(int year, int month, int day) {
                return eventMap.get(someUniqueKeyForAParticularDay); //someUniqueKeyForAParticularDay can be a unique key created using year month day or anything unique you like for a particular day. 
        }
    }

    @Nidhee Refer this

    @Premvenkat how can i remove selection using onDateClick

    @Nidhee You can not do it right now. There has to be at least one selected date.

    Nidhi
    @Nidhee
    @p-v there will be one date always selected ?
    Pratyush Verma
    @p-v
    @Nidhee With the current implementation there will always be one date selected. Although you can prevent the selection of the first date on month change using the disableAutoDateSection
    Nidhi
    @Nidhee
    @p-v i have used disableAutoDateSection, but problem occurs when i select one date and move to other date, last month date selected remains selected
    Pratyush Verma
    @p-v
    @Nidhee last month date will remain selected. disasbleAutoDateSelection prevents auto selection of first date of the month on month change. Suppose I had 14th august selected, if I switch to september, 14th august will remain selected with the disableAutoDateSelection flag.
    Nidhi
    @Nidhee
    @p-v if i dont want any date selected when i move to next month. can it be done ?
    Pratyush Verma
    @p-v
    @Nidhee No its not possible with the current implementation
    Nidhi
    @Nidhee
    @p-v but when i comment everything onMonthChange, it doesnt show any date selected
    Pratyush Verma
    @p-v
    @Nidhee It would be selecting the today's date
    Please post what you are doing onMonthChange. But you can not have the calendar with no dates selected with the current implementation. There will be at least one date selected.
    weixinwu
    @weixinwu
    Hi does anyone knows why the dates on calendar disappear when I move to previous month ?
    weixinwu
    @weixinwu
    nvm, i found a fix.