Giter Site home page Giter Site logo

myotive / blog-fragments-2017 Goto Github PK

View Code? Open in Web Editor NEW
34.0 3.0 11.0 662 KB

Blog post regarding android fragments in 2017. Sample includes fragment-less architecture

Java 100.00%
fragments android-fragments android-architecture simple-stack mosby conductor

blog-fragments-2017's Introduction

Fragments: The Solution To (And Cause of) All Of Android's Problems

Samples and links from my blog post regarding the state of Fragments in 2017.

MVP Sample

Building

To build, install and run a debug version, run this from the root of the project:

  ./gradlew assembleDebug

Project

The sample code I have provided essentially doing the same thing in many different ways. This is a master -> detail example that displays a github user's repository and allows you to drill into the details.

All of the modules in this repository share code from the Common module. This module has various components such as:

  • ApplicationComponent - Base Dagger 2 application component which provides scoped instances of the GitHubApi and OkHttpClient.
  • BaseApplication - Creates and stores the base Dagger 2 application component.
  • Adapters - RecyclerView adapters that are shared amongst all the sample modules.

Each project implements a GITHUB_OWNER key in their build.gradle file. This is the value passed into the GitHub api's call. Here's an example.

References

Blog Posts

Libraries

blog-fragments-2017's People

Contributors

jonathan-caryl avatar mmbs avatar myotive avatar zhuinden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.