ayltai / android-lib-verticalmarqueetextview Goto Github PK
View Code? Open in Web Editor NEWA custom TextView with vertical marquee effect
License: Apache License 2.0
A custom TextView with vertical marquee effect
License: Apache License 2.0
How can I use this lib with Horizontal not Vertical Direction..??
user not able to go up when auto scrolling start.So can anyone suggest how we can achieve?
On screens with high resolution (Nexus 5), scrolling speed is very slow.
Please test it.
I've been trying to put VerticalMarqueeTextView to my layout and inflate but I keep getting:
java.lang.ClassNotFoundException: Didn't find class "android.lib.verticalmarqueetextview.VerticalMarqueeTextView"
Also there is no custom namespace "example". I've tried with the default app for instance: "app:marqueeSpeed" but stil nothing.
my build gradle includes: compile 'android.lib.verticalmarqueetextview:VerticalMarqueeTextView:1.0.1'
I am try to implement two Marquee in parallel but only first one is working
here is my example layout xml::
<android.lib.verticalmarqueetextview.VerticalMarqueeTextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center_horizontal"
example:marqueeSpeed="25"
example:textSize="20dp"
example:textColor="@android:color/white"
example:textStyle="bold"
example:text="The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog." />
<android.lib.verticalmarqueetextview.VerticalMarqueeTextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center_horizontal"
example:marqueeSpeed="25"
example:textSize="20dp"
example:textColor="@android:color/white"
example:textStyle="bold"
example:text="The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog." />
CPU occupancy will be high
private void animateTextView() {
final Runnable runnable = new VerticalMarqueeTextView.MarqueeRunnable(this.textView);
long previousMillis = 0;
while (VerticalMarqueeTextView.this.marqueeStarted && !VerticalMarqueeTextView.this.marqueePaused) {
final long currentMillis = System.currentTimeMillis();
if (currentMillis >= previousMillis) {
VerticalMarqueeTextView.this.handler.post(runnable);
previousMillis = currentMillis + (long)(1000d / VerticalMarqueeTextView.this.marqueeSpeed);
}
}
this.isAnimating = false;
}
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.