Okay, now for the big quiz.
Implement the details view
using a CursorLoader*.
We've just implemented a CursorLoader*
for forecast fragment, so
if you're unsure where to start,
start with the same steps we used for
forecast fragment.
Consider taking
advantage of projections.
The trickiest part of all this is
making sure that your sharing function
is still working when you're all done.
But don't worry too much about that.
The important thing is to
understand how cursor loaders work.
If you're at all confused
about how sharing is done,
just look at the solution.
.حسنًا، والآن إلى الاختبار الكبير
نفذوا عرض details
.باستخدام CursorLoader*
قمنا للتو بتنفيذ CursorLoader*
لجزء التنبؤ، لذا
،ففي حالة عدم التأكد من مكان البدء
فيجب البدء بنفس الخطوات التي استخدمناها
.مع جزء التنبؤ
يجب التفكير في
.الاستفادة من الإسقاطات
والجزء الأصعب هنا هو
التأكد من أن وظيفة المشاركة
.لا تزال تعمل عند الانتهاء من كل هذا
.ولكن لا تقلقوا من هذا الأمر كثيرًا
فالشيء المهم هو
.فهم كيفية عمل محملات المؤشرات
وفي حالة الشك في كيفية تنفيذ
،المشاركة
.فقط ألق نظرة على الحل
では次は手ごわい小テストです
CursorLoaderを使って
Details Viewを実装しましょう
ForecastFragmentにCursorLoaderを実装したので
始め方がわからない場合は
その時と同じ手順で始めましょう
射影の利用も考えましょう
この中で一番厄介なのは
すべて完了した時に
まだ共有機能が動いていることです
しかし あまり心配はいりません
重要なのはCursorLoaderの動きを理解することです
共有について少しでも困ったら
答えを見ましょう
Certo, agora a grande pergunta.
Implemente a details view
usando um CursorLoader*.
Implementamos um CursorLoader*
para o fragmento de previsão,
e se não souber onde começar,
comece pelos passos usados no
fragmento de previsão.
Pense em aproveitar
as projeções.
O truque aqui é ter certeza
de que a função de compartilhamento
ainda funciona quando você acabar.
Mas não se preocupe demais com isso.
O importante é entender
como funciona o carregador de cursor.
Se não souber bem
como o compartilhamento é feito,
olhe na solução.
现在说说这条大型测试题
使用 CursorLoader* 实施详情视图
我们刚为预报 fragment 实施了 CursorLoader*
如果你不知道从何处着手 请从我们为预报 fragment
执行的步骤开始
考虑利用预测
整个过程中最棘手的部分是确保共享功能
在你完成所有操作后仍然有效
但不用过于担心
重点在于了解光标加载器是如何工作的
如果你对如何进行共享感到困惑
那就看看解决方案