Git Product home page Git Product logo

fragmentorientedapplication's Introduction

Fragment Oriented Application

A blueprint application to demonstrate the use of Fragments and few related concepts and techniques.

Application Structure

This application has following notable components:

  • Home - This is the only activity, hosts a navigation drawer, which is the global UI for the app, and a FrameLayout that hosts fragments. Integrates facebook session. Implements HomeInterface.
  • HomeInterface - This is a clubbed interface that extends all the interfaces that needs to be implemented in Home by various fragments (related to inter-fragment communication).
  • BaseFragment -Its an abstract base class for all the fragments. This class does a lot of backing jobs, like provisioning for back press handling.
  • DrawerItemBaseFragment -Its an abstract base class for all drawer fragments. It extends BaseFragment. Fragments extending this would correspond to a section in Navigation Drawer.
In Home, we always have a reference to currently visible fragment and current drawer fragment, which is being revised respectively from these two abstract classes. Following references do this:
BaseFragment selectedFragment;
DrawerItemBaseFragment selectedDrawerItemFragment;

fragmentorientedapplication's People

Contributors

vaishalok avatar

Watchers

James Cloos avatar Praveen J U 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.