I'm new to developing Android applications, so before I try to build the app that I want to build, I first want to make sure that I can implement all the necessary features that it requires. One of these features is multiple pages. I'm not sure if this is the best way to do this, but what I'm trying to do is get a button that, when pressed, hides TableLayout1 and shows TableLayout2, the latter of which contains a button that does the opposite so that you can return to TableLayout1. This is the code I was given on stackoverflow: Code (Text): TableLayout tl = (TableLayout)findeViewById(R.id.tableLayout2); tl.setVisibility(View.VISIBLE); However, I have no idea as to where to put this. I was told to put it within my OnClick() method, but I have no idea what or where that is. Do I need to create a new activity or something? Any help is very much appreciated. Thanks!