GithubHelp home page GithubHelp logo

quivr / android-week-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alamkanak/android-week-view

258.0 258.0 64.0 1.17 MB

Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.

License: Apache License 2.0

Java 100.00%

android-week-view's People

Contributors

alamkanak avatar andrius-b avatar asolis90 avatar dgrant avatar entropitor avatar ezmegy avatar glennschmidt avatar hermansje avatar jhoobergs avatar khacpv avatar kimpark89 avatar m4droid avatar marcelltoth avatar psamim avatar pvomhoff avatar raplider avatar reilem avatar subbuboyapati avatar thijssteel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-week-view's Issues

How can we move event rectangle on Screen without scrolling screen.

I am more than half done in my project. Every thing is working well except their is a rectangle over grid.If I move event rectangle , scroll should not be called.So I overide DisaptchEvent and when I am inside rectangle , M returning false so that onTouchEvent should not be called. And when we touch outside that box , Scroll is working bcz m returning "return super.dispatchTouchEvent(event);". But problem is when I am returning false , onMove is not called. So I am not getting last coordinate after onDown. If you need code , I can give u. Its like Selection of time to schedule appointmnet.Please reply as soon as possible.Thanks in advance.

Fling not working for left and right

mScroller.fling((int) mCurrentOrigin.x, (int) mCurrentOrigin.y, (int) (velocityX * mXScrollingSpeed), 0,
Integer.MIN_VALUE, Integer.MAX_VALUE, (int) -(mHourWidth * 24 + mPadding - getHeight()), 0);

I have tried above getWidth and getHeight both.None work.Where I am doing wrong.
Please reply asap.

Allow configurable initial visible hours

I would like to be able to configure the Day View so that it loads displaying a specified time rather than midnight. e.g. 08:00 is displayed at the top of the view (you can still scroll up to midnight).

pastBackgroundColor overlaps todayBackgroundColor

When I activate showDistinctPastFutureColor and pastBackgroundColor, todayBackgroundColor stops working

app:showDistinctPastFutureColor="true"
app:pastBackgroundColor="#20000000"
app:todayBackgroundColor="#1848adff"

Reloading the events in the view

Hi, I have a problem with switching fragments in my app. When I change the view, the week-view is stored in the fragment manager stack, but when I come back to the week-view fragment, It has no events inside. How can I preserve the events when the fragment isn't visible or how can I reload them to the view?

It's my first time using android or the libs, sorry if it is an stupid question!

Thanks in advance!

How to add this fork to my project

I apologise if this is the wrong place to ask - it probably is - but how can I use this fork in my project? Do you guys just clone it and compile it on your machines. I've been trying for a few hours and can't work it out at all.

Enable week view date header on day view

Is it possible to have the week view header (list of dates for the week) on the day view, with clickable headers that change the day view to that date and the currently displayed day highlighted?

Click on empty item

When I click on empty item on DayView mode, there is not highlight item but highlight only from the time I clicked. When I click on between of 7:00 and 8:00 for example 7:23, then it will highlight from 7:23 to 8:23, instead from 7:00 to 8:00.

So, how can I fix it?

ps. Sorry for my worst english(

Calendar jumps back to homeDate when it is out of view

First of all thank you for forking this project and merging some of the PRs that have been open for a while, I really appreciate it.

Since the min/max date feature was added, when the homeDate is out of view and you scroll vertically, sometimes the calendar will jump back so that the homeDate is in view again.

I spent a little while trying to figure out why today but haven't had any luck yet. I was hoping someone more familiar with the code might know what the issue could be.

I'll take a screen recording of the problem and upload that in a little bit.

Unsolved problem with default WeekViewEvent constructors

Hello everyone,
I'm not sure if it's the right place to ask, but let's give it a try :)

I'm actually working with WeekView library - so far so good! What I want to do is to add extra string and int to WeekViewEvent.class (String adress, int phoneNumber) to be able to use them with event object. But even if I initialize my fields, setters, getters and add them to all of default constructors (for example:
public WeekViewEvent(long id, **String adress, int number,** String name, int startYear, int startMonth, int startDay, int startHour, int startMinute, int endYear, int endMonth, int endDay, int endHour, int endMinute) {...} I'm not able to use them - Android Studio cannot resolve setters/getters and what's worse - will NOT show updated constructor as a autocomplete hint.

I have no idea what's going on - any clues?
Thank you in advance! And thanks for keeping the library alive πŸ‘
Matt

Set click listeners on Header

Hi,

I want to set click listener on the header where Day and date is displayed.
I've created the interface with listener and stuff and have set it in "onSingleTapConfirmed" but now the issue is I'm not getting the condition of getX, getY to set so that I get the click of the header.

TIA

daysBetween method is broken

dateTwo: 08/09/2017 GMT+3
dateOne: 01/01/2017 GMT+2
excected result: 243
actual results: 242
When use joda time with these calendars objects I get expected result:
Days.daysBetween(new DateTime(dateTwo), new DateTime(dateOne))

Found in: com.alamkanak.weekview.WeekViewUtil.daysBetween()

Input an AllDay event

Hello, I have just started with this libs and I would like to input AllDay events like the normal ones, just clicking (the header) one time to make the "add-mark" appear and then once more to confirm the add event. Is that possible? I mean, I want a listener for this:

horas_2

horas

Have someone any idea where can I look for in the code or how to add that listener?

Thanks in advance!

allDayEvents issue

When I put 2 or more AllDayEvents on one day, just one of them appears, but when i randomly tap on the calendar it changes with the second allDayEvent and if i randomly tap again it changes with first one and so on. I thought that multiple all day events should appear one after another just like normal events with same hour.

Horizontal/Vertical Scrolling Speed

I noticed that scrolling is slow. Even after changing the value app:xScrollingSpeed="1.0", 2.0. No difference.
That is, when I slowly scroll, scrolling lags behind, When I fast scroll it works well. It is about vertical scrolling.

AnΠ² I have a question about horizontal scrolling. When I swipe slow it isn't display next day, and if I swipe fast then a few days in advance leaves. That is if today is 7th january and if I swipe fast then it dispaled 10th january.

Will this be quickly fixed?

Stop overlap of events

Hi,

Is there a way to stop events from overlapping? If not, can you recommend a place to start looking at to consider this functionality?

Integrating it with AgendaView

Hi,
I'm integrating this lib with https://github.com/Tibolte/AgendaCalendarView .
I'm using EventBus to communicate between the events.
So on the click on a date in the calendar I need to scroll the WeekView to that day/date and Vice-Versa. In the click event I get the Calendar and the day property also. But I'm not getting any method to change the day in WeekView class.

Also please help me with the event which gets triggered when we scroll the WeekView as I need to update the Date/Day in the Calendar for the same.

TIA

can I hide title?

I'm doing noOfVisibleDays=1, and I'll have date in ToolBar. therefore, repeating the date again in title(top) is kinda redundant. Is there any way I can hide that? Thanks

Loading events created from other activity

Hi,

I'm having difficulty loading events through onMonthChange.
Specifically, I'm trying to store events created in a previous activity within a Static variable, that is of type List<? extends WeekViewEvent>. This would allow me to create events outside onMonthChange.
However, when returning the array in onMonthChange, the application crashes with a java.lang.OutOfMemoryError error.

Using a static variable for storing events before the activity with the WeekView is loaded is my attempt at getting around the fact that we currently can't use bundles to pass WeekViewEvents.

Would you guys say that this is mainly be due to a issue related with the onMonthChange, or a syntax/language error on my side?

Thanks!

WeekViewEvent mId needs to be generic

The mId on the WeekViewEvent needs to be a String to be generic to handle a wide range of meetingIds coming from several data sources - UUIDs, Strings or Long. With the current id being long, it makes it really hard to represent UUID using the getMostSignificantBits/getLeastSignificantBits uniquely.

Could this id be modified to a string to be a catch-all?

Scrolling sluggish

I've noticed that ever since I upgraded from the original WeekView to this fork that scrolling seems a bit off, for lack of a better word. If you move your finger to scroll in any direction it almost seems to ignore the touch for about half a second before it actually starts scrolling. If you hold your finger on the screen for like half a second however, scrolling will work just fine.

Use String as Event Id

Use String instead of int for Event ids. This will ease communication when fetching Custom Calendar events from device.

Every event it's shown 3 times

Like title says, every WeekViewEvent it's shown 3 times.

ussing:

Android OS: 6.0.1
Android Support: 24.1.1
Android Week View: 2.0.2

2.0.2 setup via gradle

Hey Guys,

I wanted to dig into the latest version and have the following scenario:

  • I start with a blank application in Android Studio.
  • Include the dependency: compile 'com.github.quivr:android-week-view:2.0.2'.
  • And I am able to sync and compile, but the source code grabbed is some older version (possibly not even 2.0.0), so for example I do not have limit_hour feature in WeekView.java.

Should this be working or am I missing something?

Cheers

Need horizontal Header titles for all day event with dynamic height

Hello,

I need to have all day event titles displayed horizontally one below each other. Also the number of all day events can be more than 5 so the header height should be dynamically adjusted.

Can someone please guide/direct me on how can I implement these changes.

Thanks in anticipation of your response.

start time and end time

not a bug but a suggestion for improvement to allow visible start time and end time rather called time range? :-)

Multi-line date on header column...

alamkanak#302
alamkanak#214
Similar question...but both issues is few years ago.
At here I would ask again if anyone had done the multi-line solution...

SimpleDateFormat format = new SimpleDateFormat("yyyy\n EEE\n MMM d", Locale.getDefault()); String YearDateMonth=format.format(date.getTime()); return YearDateMonth;

The expected string displayed at date header should be:
2017
Mon
Jan 20

But the actually date header is
2017 Fri Jan 20

Because of the actually date header very messy in mNumberOfVisibleDays=7 ...
1

Sorry for my broken English...
Any suggestion?? :)

Min/Max time and time zone between two time

Hi,

I want to ask two question. I have tried but i haven't do these. Can you help me, please?

  • My first problem is that. I want to change min/max time in a day (like 08:00-20:00).
  • And my second problem I want to change time zone between time and time (like 08:15,08:30,:08:45... instead of 08:00,09:00,10:00 ...)

I need a help.
Thanks.

Events ending at midnight not showing up

Hi,

I cannot figure out how to display events ending at exactly midnight.

For example, an event starting at 5PM (eg. Sep 21, 2017 17:00:00) and ending the day after at midnight (eg. Sep 22, 2017 00:00:00) is not displayed in the week-view.

In this example, the event is correctly display if it ends on Sep 21, at 23:59 and also when it ends on Sep 22 at 00:01.

Note that if the event lasts more than 2 days (eg. starts on Sept 20), the event is correctly displayed.

I'm using the version 2.0.2
Am I missing something or is it an issue ?
Thank you

Week View does not go to specified date when rendering 7 visible days

This works:

weekView.setNumberOfVisibleDays(6);
weekView.goToDate(currentCalDate);

This does NOT work:

weekView.setNumberOfVisibleDays(7);
weekView.goToDate(currentCalDate);

This is off by 7 days, pointing to the previous week.
Also, every time I rotate, it keeps going back a week, which is weird.

Could you please take a look at this issue?
(Reference to the original issue : alamkanak#445)

Event color bug

I'm trying to give certain events different colors but I'm getting some odd results. I'm setting the color like this:

if(res.getReservedForId() != userID){ event.setColor(android.R.color.holo_orange_light); }else{ event.setColor(R.color.md_blue_500); }

The events are supposed to be orange and blue but for some reason the event with the blue background becomes purple and the orange one becomes transparent, leaving only the event title visible:

Image of Yaktocat

past time colour (pastBackgroundColor) on current day is off

Hi,

If I set the pastBackgroundColor property on WeekView, it will work fine on past days but on the current day's column it will either:

  • set the past colour until 14:30 (if the current time is < 14:30) OR
  • set the past colour for the whole day (if the current time is > 14:30).

Can anybody reproduce this?

onMonthChange firing late previous month (left scroll)

@jhoobergs Any thoughts why the MonthChangeListener would not fire on scrolling left to a previous month? Works fine on next month.

Here is how the listeners are setup, similar to the sample app:

        mWeekView.setOnEventClickListener(this);
        mWeekView.setMonthChangeListener(this);
        mWeekView.setEventLongPressListener(this);
        mWeekView.setEmptyViewLongPressListener(this);
        mWeekView.setEmptyViewClickListener(this);
        mWeekView.setAddEventClickListener(this);

How to make it work inside a ScrollView or NestedScrollView?

How to make WeekView work in a ScrollView or NestedScrollView, It just works with horizontal scroll but not the vertical scroll. Have you guys any idea?

I already tried with setNestedScrollView(true) but nothing...

This is an awesome lib!
Thanks in advance.

event Text does not display

my event text is not visible.i have try to debug it and found out that in a function drawEventTitle following condition never satisfy if (availableHeight >= lineHeight) {

i have try chnaging attribute value still it does not work

please help...

Missing setters

  • setFutureBackgroundColor
  • setFutureWeekendBackgroundColor
  • setMaxHourHeight
  • setMaxTime
  • setMinHourHeight
  • setMinTime
  • setNewEventIconResource
  • setPastBackgroundColor
  • setPastWeekendBackgroundColor

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.