Get access to a view so it can be replaced
<p>So, I am using the sliding menu library from <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow">JFeinstein</a>.</p>

<p>I have successfully integrated into my project but I am having trouble changing the view of the front/main view/activity.</p>

<p>I currently have many activities that I would like to be be able to interchange.</p>

<p>I have seen the question here.. <a href="https://github.com/jfeinstein10/SlidingMenu/issues/79" rel="nofollow">https://github.com/jfeinstein10/SlidingMenu/issues/79</a>.</p>

<p>I would like to know how to use the snippet from above question to change from one activity to another. I think the issue is with fragments, which my views are not. Do I need to convert them?</p>

<p>i.e.</p>

<pre><code>    SettingsActivity parent = (SettingsActivity) getActivity();

    parent.getSupportFragmentManager()
    .beginTransaction()
    .replace(R.id.settings_frame, new Fragment())
    .commit();
    parent.toggle();
</code></pre>

<p>Any advice greatly appreciated.</p>
