-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

I've got an Activity with a Tab component, whose layout is shown
below. I need to do some customizations and I'd like to know what it's
possible to do and what not - in the latter case, I'll consider
dropping the Tab component and "emulating" it with some buttons.

1. Between the tvTaxon TextView and whatever is rendered in the
FrameLayout a solid 1px divider with a drop shadow below is rendered.
I'd like to get rid of that. I suppose that this drawable has been
designed for separating the TabWidget from the contents below, but as
you can see in my case I have an extra component (tvTaxon) between the
two. If it's not possible to get rid of the divider, I could consider
removing tvTaxon and replicating it in every Activity that is put into
the FrameLayout.

2. I'd like not to render the text in the buttons of the TabHost, only
the icon. Is it possible?

3. When moving to landscape mode, an horizontal TabHost is really a
waste of space. I'd like to specify an alternate layout for landscape
mode and have the TabHost vertically rendered at the left edge. Is it
possible?


Thanks.



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

    <LinearLayout
        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" />
        <TextView
            android:id="@+id/tvTaxon"
            style="@style/TextAppearance.Large"
            android:paddingLeft="4dip"
            android:paddingRight="4dip"
            android:paddingBottom="10dip"
            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" />
           
    </LinearLayout>
</TabHost>

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyIq8AACgkQeDweFqgUGxeJugCfVpWX2IuoGvDwD3pra4A4X9+m
JKgAnAlrebDGlmmEJ7NxR/fZ/UXDTFJE
=DeYb
-----END PGP SIGNATURE-----

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