Marquee on Android

I want to highlight the text, but did not succeed to do it right. Although I went through some examples, let's go to stackoverflow, but still having the problem. can anyone help?

0
android
Apr 07 2018-11-11T00:
source share
2 answers

This is the minimum code to create a brand -

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/MarqueeText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:scrollHorizontally="true" android:singleLine="true" android:text="This is a very long text which is not fitting in the screen so it needs to be marqueed." android:textAppearance="?android:attr/textAppearanceLarge" /> 

To make your brand more presentable: http://yhisham.blogspot.in/2012/08/android-how-to-make-marquee-ticker.html

+1
Aug 26 '12 at 17:50
source share

try this it works for me

  <TextView android:text="Android Marquee" android:id="@+id/MarqueeText" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" android:scrollHorizontally="true" android:paddingLeft="15dip" android:paddingRight="15dip" android:focusable="true" android:focusableInTouchMode="true" android:freezesText="true"> </TextView> 
+3
Apr 7 2018-11-11T00:
source share



All Articles