Hi Yogi, Create an xml for your tab:
- <#> <LinearLayout xmlns:android="* http://schemas.android.com/apk/res/android*" android:id="*@+id/tabsLayout*"android:layout_width ="*fill_parent*" android:layout_height="*fill_parent*" android:background="* @drawable/tab_bg_selector*" android:padding="*10dip*" android:gravity="* center*" android:orientation="*vertical*"> <TextView android:id="*@+id/tabsText*" android:layout_width="* wrap_content*" android:layout_height="*wrap_content*" android:text="*Title*"android:textSize="YOUR FONT SIZE" android:textColor="*@drawable/tab_text_selector*" /> </LinearLayout> Then in the code where you create your tab you can do: @Override public void onCreate(Bundle savedInstanceState) { setupTab("TAB NAME", new Intent(this,TAB.class)); } private void setupTab( final String tag, final Intent i) { View tabview = createTabView(mTabHost.getContext(), tag); TabSpec content = mTabHost.newTabSpec(tag).setIndicator(tabview).setContent(i); mTabHost.addTab(content); } private static View createTabView(final Context context, final String text) { View view = LayoutInflater.from(context).inflate(R.layout.tabs_bg, null); TextView tv = (TextView) view.findViewById(R.id.tabsText); tv.setText(text); tv.setTypeface(Typeface.createFromAsset(context.getAssets(),"YOURFONT.ttf")); return view; } Regards, Fredrik -- 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

