I have an Android app in which nine of the activities do not load a layout file. Their views are private classes which extend the View class. The activity construct view objects at runtime and uses these objects instead of layout files. The problem that I have is that the views created these activities should slide in and slide out both left and right when switching to other views. I have used a ViewFlipper before but I am unable to one with my need here since view flippers take layout files rather than activities. Is there any chance my problem can be solved without resolving to switching to layout files?