Skip to content

singhprashant17/AdvanceViewSwitcherDemo

Repository files navigation

AdvanceViewSwitcher

An example implementation of AdvanceViewSwitcher.

This library allows adding different views at Runtime, identified by their unique tags, and easy management between switching them. There is NO LIMIT in number of views that can be added/handled. Respects all layouts: LinearLayout, RelativeLayout, FrameLayout


Works seamlessly with both Activity and Fragment.
The demo project has implementation with both Activity and Fragment.
NOTEABLE METHODS :
  1. public void addMainView() :
    adds the view supplied to the constructor with TAG_MAIN_VIEW

  2. public void addViewWithTag(View view, int viewTag) :
    adding the view with specified tag. if tag is already present, returns

  3. public void displayViewWithTag(int viewTag) :
    displays view associated with the provided viewTag. If not found, returns

  4. public void addAndDisplayWithTag(View view, int viewTag) :
    adds and display the view as soon as after adding



Screenshots


View while data is downloading
Alt text

View when exception occurs
Alt text

View when success
Alt text

Features loved to be added

  1. Animation support when switching between views

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages