android - Marquee text is no working properly in samsung Galaxy S3 -
i have done marquee text. did following code snippet
<textview android:id="@+id/scrolltext" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#000" android:ellipsize="marquee" android:marqueerepeatlimit="marquee_forever" android:padding="5dip" android:scrollhorizontally="true" android:singleline="true" android:text="@string/scrolltext" android:textcolor="#f4ce6b" />
problem is not working in phones samsung galaxy s3. complete text not displayed. instead of few dotes there.
solved issue.
i made mistake in coding calling additional scrolling movement method.
scroll_text.settext(scroll); scroll_text.setselected(true); scroll_text.setmovementmethod(new scrollingmovementmethod());
now seems ok removing line of code.
scroll_text. set selected(true); scroll_text.settext(scroll);
Comments
Post a Comment