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 :
-
public void addMainView() :
adds the view supplied to the constructor with TAG_MAIN_VIEW -
public void addViewWithTag(View view, int viewTag) :
adding the view with specified tag. if tag is already present, returns -
public void displayViewWithTag(int viewTag) :
displays view associated with the provided viewTag. If not found, returns -
public void addAndDisplayWithTag(View view, int viewTag) :
adds and display the view as soon as after adding
Screenshots
View while data is downloading
View when exception occurs
View when success
Features loved to be added
- Animation support when switching between views