title: achartengine: How to add chart to fragment in Tabs
body: <p>I want to show a Button and a PieChart below in a tab.
  Thats the code I worked with: <a href="https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/fragments/src/com/actionbarsherlock/sample/fragments/FragmentTabs.java" rel="nofollow">https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/fragments/src/com/actionbarsherlock/sample/fragments/FragmentTabs.java</a>
  Instead of the CountingFragment etc. I implemented my own.
  I'm not sure what to </p>
  
  <p>My xml:
  fragment_graph_categories.xml</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/fragment_graph_categories"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;Button
              android:id="@+id/button_filter"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/button_filter" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And that's my "Tab" attached to the TabManger</p>
  
  <pre><code>public class GraphCategories extends SherlockFragmentActivity {
      GraphCategoriesFragment mCategoriesFragment;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.fragment_graph_categories);
  
          if (savedInstanceState == null) {
              // Do first time initialization -- add initial fragment.
              mCategoriesFragment = GraphCategoriesFragment.newInstance(1);
              FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
              ft.add(R.id.fragment_graph_categories, mCategoriesFragment).commit();
          } else {
              //mStackLevel = savedInstanceState.getInt("level");
          }
      }
  
      @Override
      protected void onResume() {
          if(mCategoriesFragment != null) {
              //mCategoriesFragment.onResumeRedraw();
          }
      }
      //notice Inner class
      public static class GraphCategoriesFragment extends SherlockFragment {
          @Override
          public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          //View mChartView = inflater.inflate(R.layout.hello_world, container, false);
          View rlayout = inflater.inflate(R.layout.fragment_graph_categories, container, false);
  
          //? rlayout = new LinearLayout(getActivity());
  
  
          return rlayout;
          }   
      }
  }
  </code></pre>
  
  <p>But im not sure what to inflate at the fragments onCreateView or if I need a FrameLayout in my xml? 
  I tried some options but don't figured it out.</p>