Hello,

Is there a way to change tabs from the default, gigantic size, along
with aligning the indicator at the top? Here's what I'm currently
using:

XML:
<TabHost xmlns:android="http://schemas.android.com/apk/res/android";
     android:id="@android:id/tabhost"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">
     <TabWidget
          android:id="@android:id/tabs"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"/>
     <FrameLayout
          android:id="@android:id/tabcontent"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:paddingTop="65px">
     </FrameLayout>
</TabHost>

Java:
    setContentView(R.layout.test);
    TabHost tabHost = getTabHost();

    TabSpec tab = tabHost.newTabSpec("Main");
    tab.setContent(new Intent(this, Main.class));
    tab.setIndicator("Main");
    tabHost.addTab(tab);

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to