So the footer is the same for all tabs? In that case, I would set for the TabActivity a custom layout that contains the footer.
Something like this: <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="1dip"> <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" /> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1"/> <ImageView android:id="@+id/Logo" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/ nexsoftware" android:background="#FF000000" android:scaleType="fitCenter" /> </LinearLayout> </TabHost> On Jun 15, 6:59 am, Tom <[email protected]> wrote: > Hi, > > I created a TabActivity with contains 3 tabs. Each tab's content sets > different Intents. > > I would like to add a "footer" wich will appear on each tab. So I get > TabActivity's FrameLayout and add it my footer view. > > Is it possbile to define where place the footer (with an attribute > like AT_BOTTOM)? > So contentTab dimensions are calculated according to this footer. > > (I hope my question is clear). > > Here are some of my codes : > > public class Temp extends TabActivity{ > > �...@override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > final TabHost tabHost = getTabHost(); > > // First tab > TabHost.TabSpec userTab = tabHost.newTabSpec(); > secTab.setIndicator(this.getString("Activity2")); > secTab.setContent(new Intent(this,Activity2.class)); > > // Second tab > TabHost.TabSpec secTab = tabHost.newTabSpec(); > secTab.setIndicator(this.getString("Activity2")); > secTab.setContent(new Intent(this,Activity2.class)); > > // Third tab > TabHost.TabSpec thirdTab = tabHost.newTabSpec(); > thirdTab.setIndicator(this.getString("Activity3")); > thirdTab.setContent(new Intent(this,Activity3.class)); > > // Footer View > FooterView footer = new FooterView(this); > // Add it to the frameLayout > tabHost.getTabContentView().addView(footer); > } > > } > > Thanks > Best regards > Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

