ened / android-marqueeview Goto Github PK
View Code? Open in Web Editor NEWCustom MarqueeView container
License: BSD 2-Clause "Simplified" License
Custom MarqueeView container
License: BSD 2-Clause "Simplified" License
Hello,
If I use android:layout_width="fill_parent" I've this exception:
java.lang.RuntimeException: The child view of this MarqueeView must be a TextView instance.
<asia.ivity.android.marqueeview.MarqueeView
android:id="@+id/marqueeView150"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="0dp"
marquee:autoStart="true"
marquee:pause="1000"
marquee:speed="5" >
<TextView
android:id="@+id/tweettext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:focusable="true"
android:focusableInTouchMode="true"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
</asia.ivity.android.marqueeview.MarqueeView>
Hi, thank you for sharing this is for a long time missing from Android libraries... I am trying to run this form code only (no xml at all) and I can see that it would be helpful to have a public constructor that takes a TextView. At the moment I create a TextView, set all its properties(font,size,color,text) and then attached to the marquee as a child. Code wise it all looks Ok but I don't get any visible text in the layout/TextView. Displaying a colored layout shows me that the integration with the rest of my project is OK . . . so I don't know how to proceed from here.... any ideas? Thank you
Works fine on Android 4.x but shows nothing on Android 7.0+
java.lang.ClassCastException: android.widget.ScrollView cannot be cast to android.widget.TextView
at asia.ivity.android.marqueeview.MarqueeView.initView(MarqueeView.java:310)
at asia.ivity.android.marqueeview.MarqueeView.onLayout(MarqueeView.java:182)
Sometimes the marquee is still happening (sort of), even when the TextView is too short.
Probably also after re-setting the text.
The marquee goes back and fourth instead of around.
Hi,
Currently, all works great except for 1 thing.
When the text animation starts and ends, the text is still visible.
I would like to make the text enter farther to one side, and exit farther on the other side, so that at the beginning and end the textView is blank.
Is there any way I could adjust this?
Also:
Thank you and hoping to hear from you soon.
java.lang.RuntimeException: The child view of this MarqueeView must be a TextView instance.
Here is my xml file:
<asia.ivity.android.marqueeview.MarqueeView
android:id="@+id/marqueeView150"
android:layout_width="150dp"
android:layout_height="wrap_content"
marquee:autoStart="true"
marquee:pause="1000"
marquee:speed="5">
<TextView
android:id="@+id/songname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginStart="5dp"
android:textColor="@android:color/white"
android:textSize="25sp"
android:text="Good Time"/>
</asia.ivity.android.marqueeview.MarqueeView>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.