Hi at all,

I am a little newbye in Android programming and I try to make  a UI
which shows five tab at the bottom on the windows, one of these tab
when pressed will shows  a list of rows.

In fact when the tab is pressed I start another activity which
contains a ListView, the main Activity is an TabActivity.

The main.xml (TabActivity) is :

<?xml version="1.0" encoding="utf-8"?>
<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">
    <RelativeLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
         />
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:padding="0px"
            android:layout_margin="0px"
        >

            <TextView
                android:id="@+id/textview1"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is a tab"
                />
            <TextView
                android:id="@+id/textview2"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is another tab" />
            <TextView
                android:id="@+id/textview3"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is a third tab" />
            <TextView
                android:id="@+id/textview4"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is a third tab" />

        </FrameLayout>


     </RelativeLayout>



</TabHost>

and the layout of second Activity(ListView) is:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <ListView
    android:id="@+id/earthquakeListView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
  />
</LinearLayout>

See here for see the problem :

https://docs.google.com/leafid=0ByOVgdPrIFXYNTVkNmJjNjktMzY3Mi00MDUxLWI2YTUtOWJhZGYyMTUyMGYz&hl=en

Anyone can help me?

Why this forum functionality are poor like this?I would like to format
better my code and mr problem!

-- 
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