Just create two diffrent activity for each view. say A and B;
from Activity A use something like
Using java Syntax Highlighting
Intent intent = new Intent(this, B.class);
startActivityForResult(intent, 1); // this will take u to second view i.e B .
Parsed in 0.031 seconds, using GeSHi
in the second view just call finish() , in your case in buttons onClick() method. This will take you back to the view A.