The closest thing (besides ListView / ListAdapter, of course) that I can think of is ViewSwitcher and ViewSwitcher.ViewFactory , but there is nothing magical there: it is an interface that you can call to get a view.
Since this is only one line to get a view and add it to your current hierarchy anyway, although ( View.inflate(context, R.layout.somelayout, myContainerViewGroup)) it seems silly to go with something heavier, but if you would be better off wrapping something like Factory, check AOSP source for ViewSwitcher .
source
share