I neglected to mention that the marquee scrolling is due to the
TextView ellipsize attribute in the xml file that defines the layout
of TextView rows.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <view
        class="com.mycompany.myapp.TClass$MyUnderlinedTextView"
        android:id="@+id/tlist_utext"
            android:layout_weight="1"
            android:layout_width="0dip"
            android:layout_height="fill_parent"
            android:textSize="22dip"
        android:singleLine="true"
        android:ellipsize="marquee"
            android:background="@android:color/transparent" />

    <ImageView android:id="@+id/icon"
        android:layout_width="48dip"
        android:layout_height="48dip" />

</LinearLayout>

In the custom TextView onDraw(), setTypeface(getTypeface(),
Typeface.ITALIC) seems to prevent the marquee scroll from working when
the selected text is too large to fit in the view.  With
Typeface.NORMAL, the marquee scroll works as specified in the xml.


On Aug 30, 2:34 pm, greg <sep...@eduneer.com> wrote:
> The default marquee scroll (i.e., three scrolls of text when list item
> is selected) in my application's ListView works when the typeface is
> set to Typeface.NORMAL but not when set to Typeface.ITALIC.  Is the
> marquee scroll implemented for TextViews with the ITALIC typeface?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to