Git Product home page Git Product logo

android-lib-verticalmarqueetextview's Issues

not able to go up

user not able to go up when auto scrolling start.So can anyone suggest how we can achieve?

Cannont instatiate class from XML

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'

Two VerticalMarqueeTextView

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." />

energy consumption

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;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.