Skip to content

Repository files navigation

StackView

StackFragment is a UI Component supporting expand and collapse states with a child fragment in it.

Introduction

In collapse state It accepts another fragment as it's child fragment (make sure you add child fragment using childFragmentManager).

Features

  1. When Collapsed View is clicked can call expandAndDetachChildren() function to expand the current view and remove its children.
  2. Child view can be any fragment or even StackFragment itself to create a complex view type structure. (make sure the view is visible to the user when all StackFragments stack up).
  3. onBackPress is also handled within the StackFragment to remove its top most child first.
  4. Customise option is present, can do what ever you like to.

DEMO


Concept of using fragments is state on orientation change, animations, and back press can be handled on its own and handy individually.

About

StackFragment is a UI Component supporting expand and collapse states with accepting a child Fragment in it.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages