title: How to extend Activity in main class that extends "Fragment"?
body: <p>I have an Android project and I use Navigation Drawer in it, and in the MainActivity, I have a switch-case, with options and your respective positions for to open when the user clicks. But, in a class called TelaQUEMSOMOS, the parameters that are there:  </p>
  
  <pre><code>public class TelaQUEMSOMOS extends Fragment {
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View rootView = inflater.inflate(R.layout.telaquemsomos, container, false);
          return rootView;
      }
  }
  </code></pre>
  
  <p>are extending from Fragment and not Activity. It's bad, because I need to put a Toast.makeText or findViewById, and I can't. How can I handle it?</p>
  
  <p>Link for download my project(the project is in portuguese): <a href="https://goo.gl/pm5dIC" rel="nofollow">https://goo.gl/pm5dIC</a></p>