to use single layout and load different different images from resource/drawable-android
<p>i am working on a image based yoga project.In which i am thinking to use a single framelayout.
In each screen there are different-2 yoga steps/images.And on each screen back and next buttons.I have done this using number of xmls and .java files as intent,set class and start activity(bad approach).Means on clicking next buttons(using intents and setclass) a new class file is called with new layout and so on this cause 26 .java files/classes.
    <strong>In new approach just want to use single framrlayout(a common layout for all images having back/next buttons) and on clicking next and back buttons different-2 yoga steps/images get uploaded from drawable folder</strong>.How to do this ?please guide!</p>
