Giter Site home page Giter Site logo

android-uikit-foundation's Introduction

Android-UIKit-Foundation

Info

A fragment controller foundation for Android, which tryes to mimic iOS UIKit behavior

What is done

  • iOS-like navigation bar, with slide in/out content views
  • Swipe from the left corner gesture to close the current view
  • Easy to use Tab bar

UIViewControllerContainer

A container which extends ConstraintLayout, must be the root of layout for UIViewController

UIViewController

Abstract class which extends Fragment, implements the functionality to be used as child for UINavigationController, contains functions to use:

  • createView(LayoutInflater inflater, ViewGroup container, @LayoutRes int resource) - return UIViewControllerContainer, must be used as super for onCreateView()
  • setTitle(String title) - set the title which will appears on UINavigationController
  • getTitle() - return current controllers title
  • present(UIViewController controller) - add a new controller to the controllers stack and show it on the screen using animation
  • dismiss() - remove current controller from the screen and from controllers stack in UINavigationController

UINavigationController

Class which extends Fragment, implements the functionality to store and animate UIViewControllers attached to it, contains functions to use:

  • init(UIViewController rootController) - return UIViewController with root controller in it, must be used as initialiser
  • present(UIViewController controller) - add a new controller to the controllers stack and show it on the screen using animation
  • dismiss() - remove current controller from the screen and from controllers stack

UITabBarController

Class which extends Fragment, implements the functionality to store fragments and show them on the screen using BottomNavigationView, contains functions to use:

  • init(@MenuRes int menu, Fragment[] rootFragments) - return UITabBarController, menu resource and root fragments array must have an equal sizes, must be used as initialiser

What to do

  • Add more iOS-like animations
  • Support for menus in navigation controller
  • ??? ... may be something more

android-uikit-foundation's People

Contributors

xitrix 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.