Hello:
Im facing a little trouble with a TabHost, i want to change the text size on each tab, but i cant find a way to do it, what i have is this:
XML (I Removed The "<" to make it visible)
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"> LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp"> TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" /> FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" android:background="@drawable/Filter" /> /LinearLayout> /TabHost>
Tab Activity:
//Set TabHost (OnCreateMethod)
CreateTab(typeof(Tab1), "content1", "DataSet1", Resource.Drawable.Tab1);
CreateTab(typeof(Tab2), "content", "DataSet2", Resource.Drawable.Tab2);
CreateTab(typeof(Tab3), "content", "DataSet3", Resource.Drawable.Tab3);
CreateTab(typeof(Tab4), "content", "DataSet4", Resource.Drawable.Tab4);
//CreateTab Method
var intent = new Intent(this, activityType);
var spec = TabHost.NewTabSpec(tag).SetIndicator(textTab).SetContent(new Intent(this, activityType).AddFlags(Android.Content.ActivityFlags.ClearTop));
var drawableIcon = Resources.GetDrawable(drawableId);
spec.SetIndicator(label, drawableIcon);
spec.SetIndicator (label);
spec.SetContent(intent);
TabHost.AddTab(spec);
How can i set the size for the Label of each tab?