Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Month title missing #266

Closed
DavidH46 opened this issue May 10, 2015 · 15 comments
Closed

Month title missing #266

DavidH46 opened this issue May 10, 2015 · 15 comments

Comments

@DavidH46
Copy link

default
Thanks for sharing this wonderful work.
I'm just starting to use caldroid and my month title is missing.
I can't figure out why.
The grey rectangle in the upper-left hand corner seems to be "next month" arrow because it change to next month when I click it.
Any idea on how this is happening?

@thomasdao
Copy link
Contributor

I never seen this issue before. Can you try Caldroid Sample on your phone? If the sample works, probably it's your code issue

@gwangyi
Copy link

gwangyi commented May 13, 2015

I have same problem too. I had tried on Galaxy S3 with API level 19. It also has gone away in emulator, too. I used AppCompatActivity instead of FragmentActivity.
In API level 22 and 10 w/ emulator, month title is shown well. With FragmentActivity, it also works well in API level 19.

@DavidH46
Copy link
Author

@thomasdao I believe it's because I use ActionBarActivity instead of FragmentActivity. But my actionbar needs to extends from actionbaractivity. Is there any way that I can get the best of both worlds? Thank you

@DavidBreskvar
Copy link

I have the same problem. I was changing the style of calendar and all of the sudden no more month title and the arrows were gone. I did a revert but that did not solve the problem.

Edit: Works fine on my Nexus 10 tablet. Maybe it's some issue with new version of appcompat?

@gwangyi
Copy link

gwangyi commented May 15, 2015

I solved the problem: I copied style from CaldroidDefault to AppTheme and change parent to Base.Theme.AppCompat.Light.DarkActionBar. It seems that AppCompatActivity can't handle accurately when inner view or fragment has different theme from owner activity. I don't know why :(

@DavidBreskvar
Copy link

Could you give me an example? My AppTheme parent is currently Theme.AppCompat.NoActionBar.
Is there a chance to preserve that? I tried changing the theme in CaldroidDefault to AppTheme but no success.

@DavidBreskvar
Copy link

Ok, the problem actually is the new version of app compat library, which was upgraded from 22.0.0 to 22.1.1.
I reverted to last appcompat and the month title is again showing, but that should be somehow upgraded, to use the latest libraries available.

@gwangyi
Copy link

gwangyi commented May 16, 2015

I have added some items to AppTheme style to make similar to CaldroidDefault in caldroid project.

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> @style/CaldroidDefaultCalendarViewLayout @style/CaldroidDefaultLeftButton @style/CaldroidDefaultRightButton @style/CaldroidDefaultMonthName @style/CaldroidDefaultGridView @style/CaldroidDefaultNormalCell @style/CaldroidDefaultSquareCell @style/CaldroidDefaultWeekday </style>

@LOG-TAG
Copy link

LOG-TAG commented May 28, 2015

@gwangyi saved my day !! 👍 now works fine !!!

@NitramTasu
Copy link

I had the same problem!!! thanks @gwangyi !!!

@acedward
Copy link

Same issue here.
@DavidH46 solution worked for me. Thanks!

@azizimusa
Copy link

the solution provided by @gwangyi is working ! thank you very much.

@thomasdao
Copy link
Contributor

Please use latest version compile 'com.roomorama:caldroid:2.1.0', it should fix this issue

@matteolel
Copy link

Same problem with v2.1.0.
BTW the solution provided by @gwangyi is still working!

@fpr0001
Copy link

fpr0001 commented Aug 25, 2015

@gwangyi i love you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants