This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5.14 Coding Task for Today Item on Tablet
- Loading branch information
Lyla
committed
Mar 4, 2015
1 parent
04188f7
commit b920522
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lesson 8, the answer of 34 lecture, In Forcast Fragment, Katherine Kuan mam is saying that MainActivity's onCreate method will happen before ForecastFragment's onCreateView Method. But, the reality is, MainActivity's onCreate method will call before ForecastFragment's onCreateView but before finishing MainActivity's onCreate method the ForecastFragment's onCreateView will finish. And so, setUseFragmentLayout will call twice when MainActivity's onCreate method will finish. And the biggest problem is that every first-time useTodayLayout will remain false.
So, there is no need of calling
mForecastAdapter.setUseTodayLayout(mUseTodayLayout);
in ForecastFragment.Am I wrong? Please help me.