Github Browser Sample with Android Architecture Components

googlesamples/android-architecture-components This is a sample app that uses Android Architecture Components with Dagger 2.

这是一个绝佳的例子,比 Build an App with Architecture Components, Android Lifecycles 要复杂很多,包含如下要素:

  • Android Architecture Components;
  • Exposing network status;
  • Multiple database tables;
  • Independent Inject;
  • Data binding;

要先懂Dagger2,否则代码看不懂,比如@Inject.