Revert "Revert "switchlayout库和demo""

This reverts commit 4c49738f87b1d7de79d3941239f14be650ea9807.