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

Not working within fragment when activity was created already #30

Open
sjd753 opened this issue Apr 21, 2017 · 3 comments
Open

Not working within fragment when activity was created already #30

sjd753 opened this issue Apr 21, 2017 · 3 comments

Comments

@sjd753
Copy link

sjd753 commented Apr 21, 2017

If you put calendarView inside fragment and put that fragment in an activity and start the activity, it works fine but if you have a drawer activity (say) and it already running and when a navigation drawer item is selected and you replace another fragment with this calendarFragment it does show up at all. It's a bug i think. Help required ASAP please!

@TKolbusz
Copy link

Yep, I have the same problem. I think layout height and width isn't calculated as it should be when instantiating view at runtime.

@sjd753
Copy link
Author

sjd753 commented Apr 21, 2017

I kinda agree with "I think layout height and width isn't calculated as it should be " but not with " when instantiating view at runtime" coz when you use calendatView inside a fragment that is attached to its activity in onCreate() then there's no problem! Weird!

@sjd753
Copy link
Author

sjd753 commented Apr 21, 2017

Basically if the calendarView is instantiated in the onCreate() of an activity whether or not it be in a fragment (fragment attached in onCreate) or not , then there's no issue. If it's not instantiated in onCreate() then calendar does not appear. Although I've noticed that if the activity was restarted forcefully (say by the instant run) then calendar reappears!

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

2 participants