title: Tabbed dialog with fragments in widget
body: <p>I am working on widget, where for widget settings i am looking to provide a dialog for with tab fragment, the problem is dialog do not have action bar tabs, i have tried various lay out patterns, but none of them seems to work.</p>
  
  <ol>
  <li><p>In the manifest, have made the activity</p>
  
  <pre><code>&lt;activity android:theme="@android:style/Theme.Dialog"  android:launchMode="singleInstance"
            android:name="WidgetConfigureActivity"&gt;&lt;/activity&gt;
  </code></pre></li>
  <li><p>I am not sure, which layout to use exactly ViewPager, FragmentTabHost in the UI, basically not clear which layout to go for.</p></li>
  <li><p>WidgetConfigureActivity extends <code>FragmentActivity</code> for now, the below is the code for it(code is taken from <a href="http://developer.android.com/reference/android/support/v4/app/FragmentTabHost.html" rel="nofollow">FragmentTabHost</a>)</p>
  
  <pre><code>FragmentTabHost mTabHost;
  @Override
  protected void onCreate(Bundle arg0) {
      super.onCreate(arg0);
      setContentView(R.layout.widget_configure_activity);
      mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost);
      mTabHost.setup(this, getSupportFragmentManager(), R.id.tabhost);
      //this above setup line gives error =&gt; (The method setup(Context, FragmentManager, int) in the type FragmentTabHost is not applicable for the arguments (WidgetConfigureActivity, FragmentManager, int))
      mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"),
              MyFragment.class, null);
  }
  </code></pre></li>
  </ol>
  
  <p>ViewPager is not that important, but how to have tabbed dialog with fragments is the question?</p>
  
  <p><code>4.</code> How to make UI/layout NOT change even if apply <code>Theme.Dialog</code> to my activity, all the font appear white in white background? (i have seen text by tilting the screen)</p>