View Operations
Add item view
Add item view to the PlaceHolderView.
placeHolderView.addView(new SampleItemView());
Add item view at provided position. It will shift the other views below.
placeHolderView.addView(2, new SampleItemView());
Add an item view before an existing item view.
placeHolderView.addViewBefore(sampleItemView1, new SampleItemView());
Add an item view after an existing item view.
placeHolderView.addViewAfter(sampleItemView1, new SampleItemView());
Remove an added item view
Remove the view added in the PlaceHolderView using the item view reference.
placeHolderView.removeView(view);
Remove view from a position.
placeHolderView.removeView(1);
Remove all the added views.
placeHolderView.removeAllViews();
Refresh
Refresh the entire list.
placeHolderView.refresh();
Refresh a particular item view with its reference.
placeHolderView.refreshView(itemView);
Refresh a particular item view with its position.
placeHolderView.refreshView(2);
Total views count
Get total added item views count.
placeHolderView.getViewResolverCount();
Get added item view
Get an item view added at a position.
placeHolderView.getViewResolverAtPosition(2);
Get all the item views added.
placeHolderView.getAllViewResolvers();