入门/ Flow and Mortar

Getting Started w/ Flow and Mortar

我一直在网上搜索有关在 Android 中使用 Mortar 和 Flow 的简化指南,但只找到了一些解释的代码片段。

真的很难理解这个库是如何工作的。

尝试最近更新的示例 - 现在可以通过工作示例实现其背后的想法。

Flow-Sample

Mortar-Sample

库中的代码本身也包含文档,这有助于理解它。还可以考虑阅读这些博客文章:

Advocating against fragments

An investigation into Flow and Mortar

以及这些人的演讲:

Presentation by Pierre-Yves Ricau from Squareslides

Presentation and slides Thorben Primke 在 2015 年柏林 Droidcon

Slides of presentation by Matt Compton

以及上面提供的博客文章。尽管图书馆发展迅速,这些图书馆中的一些信息已经过时,但它们很有用。

您还可以使用 Mortar / Flow / Dagger2 查看我的示例项目,它是最新的最新版本:https://github.com/lukaspili/Mortar-Flow-Dagger2-demo