Android-Week-View icon indicating copy to clipboard operation
Android-Week-View copied to clipboard

New feature: now indicator

Open ghost opened this issue 11 years ago • 15 comments

It would be nice to have possibility to see some indicator for current hour of current day, i.e. some horizontal line of some color.

ghost avatar Apr 21 '15 22:04 ghost

#67 implements this already

entropitor avatar Apr 22 '15 08:04 entropitor

#118 do what you want, it's the same as #67 but only with the line and based on the newest version of master.

lolobosse avatar Apr 22 '15 10:04 lolobosse

thank you guys :)

One side question, currently I am working with Android-Week-View in my app developed in Android Studio by using:

compile 'com.github.alamkanak:android-week-view:1.2.1'

in build.gradle's dependencies. Is there some manual how to use other ppl modifications (forks) from GitHub? Can I use them in similiar way as master or should I download whole project code (i.e. caske33's modifications) and build it together with my app? I know it's noob question, but I really can't find good answer, there are mainly articles about syncing my own project with GitHub. Any advice would be appreciated, even google search phrases would be ok ;)

ghost avatar Apr 22 '15 13:04 ghost

It's not a noob question, it's not that easy:

What you need to do is to take the URL of the fork you want (the .git URL of course) and add it to your remotes. Then fetch it. If you have chance (if you take my fork and you didn't work on the original one for example) you should have no conflict and you'll be able to merge my changes in your code. But it could be much more complicated: if you take the #67 as @caske33 proposed, you'll have a bunch of merge conflicts to solve (I tried it because it would have been much easier for me, instead of recoding the same functionality) and that's why I created another push request because mine is able to merge direct with the latest version of the master.

But if you want to have @caske33 fork, what you could is just fork his fork and then you'll be sure to have all of his changes :smile: but do not forget, I know that using the compile 'com.github.alamkanak:android-week-view:1.2.1'is easier but you cannot modify the source code of the library after that; that's why we clone the repository.

lolobosse avatar Apr 22 '15 14:04 lolobosse

I've described it here too: https://github.com/alamkanak/Android-Week-View/issues/54#issuecomment-72930730

But instead of merging my PR, you'll probably want to merge @lolobosse's branch, if the now-indicator is the only new functionality you need.

entropitor avatar Apr 22 '15 14:04 entropitor

Thank you guys for good description, I will try both methods, to learn something new which might be useful in future :)

ghost avatar Apr 22 '15 18:04 ghost

Thanks a lot for the nowline @caske33 and @lolobosse . I am currently using #118 . When I scroll up, the NowHourLine scrolls over the HeaderText and the line is still visible. What I desire is to have it go to the back of the header just like the TimeTexts. Are you having a similar issue?

obaslan avatar Nov 07 '15 20:11 obaslan

@obaslan can you try the develop branch from this repo?

entropitor avatar Nov 07 '15 23:11 entropitor

@caske33 would you be able to specify which commit you mean exactly?

obaslan avatar Nov 08 '15 01:11 obaslan

https://github.com/alamkanak/Android-Week-View/commit/3396a814584959a8e5ef6e36cf7a8ba254274e6f should work normally. (The merge happened earlier on, but it's best to test that version). You have to enable the newColoring (or something like that) attribute though.

entropitor avatar Nov 08 '15 10:11 entropitor

hi @obaslan can you also check your colors used for header? if some of them are transparent it can be possible that the text is drawn over text

marunjar avatar Nov 08 '15 17:11 marunjar

@marunjar That did not solve the problem. @caske33 The commit you shared has changes to the drawEventTitle method. Will that help with the Header being behind the nowHourLine?

obaslan avatar Nov 08 '15 20:11 obaslan

@obaslan I just referenced the latest commit. That commit had nothing to do with it.

And can you provide more information about what exactly goes wrong?

entropitor avatar Nov 08 '15 20:11 entropitor

Thanks @caske33 Problem solved. I was drawing the NowLine after the Header, so NowLine was coming forward.

obaslan avatar Nov 08 '15 21:11 obaslan

version 1.2.4 of the library has a nowIndicator.

entropitor avatar Jan 03 '16 10:01 entropitor