Giter VIP home page Giter VIP logo

android-marqueeview's People

Contributors

blunan avatar ened avatar gewoonrik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-marqueeview's Issues

ScrollView cannot be cast to TextView Exception

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)

Public constructor

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

Adjusment of enrty point and end point of text

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:

  • it's not clear what's the latest version of the project, it would be nice if you can mention this somewhere on the README page.
  • Currently, the scroll animation starts in one direction, and after ending it starts scrolling to the other direction. In my case, I need it to scroll only in one direction, and after ending it should start in the same direction and text entry point. It would be very helpful if you could adjust the view to support this.

Thank you and hoping to hear from you soon.

Exception: The child view of this MarqueeView must be a TextView instance.

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>

Exception when using android:layout_width="fill_parent"

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>

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.