Backport of lucasr's twowayview based on the RecyclerViewLib backport by twotoasters