Hi all,

I am having this issue where I am trying to have a single TextView
span one to two lines, fill the cell completely (so you can also click
edges of the cell and it will trigger) and center-align.

This is the layout for the cell:
<LinearLayout
        android:id="@+id/LinearLayout01"
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:minHeight="46px"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
<TextView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/label"
        android:layout_marginLeft="5px"
        android:gravity="center">
        </TextView>
</LinearLayout>

However cells seems to be filled correctly ONLY if it happens to wrap
around and end up spanning two lines of text. It shows center-aligned
and you can click anywhere in the cell to trigger the click. The cells
that do not span multiple lines of text are left-aligned and trigger
(highlight) only if you click where the text is. There is a "numb"
area which does not react to clicks inside the cell if the text is
short.

Any help is appreciated.
Thanks

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