Here is the situation, I have a widget containing two text views, and I want the text to scroll if its width exceeds the width of the layout. The problem is that the selection area works to represent the bottom text, but does not work for the top. I am attaching a piece of code. Can you tell me what I'm doing wrong?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/left" android:layout_width="97dip" android:layout_height="fill_parent" > <TextView android:id="@+id/place" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dip" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:lines="1" android:marqueeRepeatLimit="marquee_forever" android:scrollHorizontally="true" android:textColor="@color/white" > </TextView> <TextView android:id="@+id/weather_report" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/place" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:lines="1" android:marqueeRepeatLimit="marquee_forever" android:scrollHorizontally="true" android:textColor="@color/grey" > </TextView> </RelativeLayout>
source share