You cannot use a height of fill_parent with listview items, nor can
you span across multiple lines.

On Thu, Feb 12, 2009 at 3:31 PM, kamenjar <[email protected]> wrote:
>
> 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
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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