 <p><a href="http://developer.android.com/guide/components/fragments.html" rel="nofollow"><code>Fragments</code></a> will solve all your problems here.</p> <p>There are many great examples and the link i posted will help you get started.</p> <p><a href="http://stackoverflow.com/questions/5710573/need-a-fragments-example">Here is a similar post with many examples as answers.</a></p>