Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chayanforyou/marqueetextview-android
A marquee view supporting both RTL and LTR.
https://github.com/chayanforyou/marqueetextview-android
android horizontal-scrolling library marquee marqueetext marqueeview scrolling-text
Last synced: about 1 month ago
JSON representation
A marquee view supporting both RTL and LTR.
- Host: GitHub
- URL: https://github.com/chayanforyou/marqueetextview-android
- Owner: chayanforyou
- License: apache-2.0
- Created: 2024-03-31T09:30:44.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-04T17:53:23.000Z (9 months ago)
- Last Synced: 2024-04-05T10:34:56.829Z (9 months ago)
- Topics: android, horizontal-scrolling, library, marquee, marqueetext, marqueeview, scrolling-text
- Language: Kotlin
- Homepage:
- Size: 2.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MarqueeTextView
Use MarqueeTextView to display rtl (or ltr) text with proper movement direction.
Based on open source lib: https://github.com/shachar-oren/android-rtlmarqueeview
## Preview
## Integration
Add the dependency:
```groovy
dependencies {
implementation 'io.github.chayanforyou:marquee:1.0.0'
}
```
## UsageExample usage in XML:
```xml
```
Layout direction is checked internally. To manually update it, call `updateRtl()`.
## Public methods
```java
void setText(String text)
String getText()void setTextColor(int color)
int getTextColor()void setTextSize(float size)
float getTextSize()void setTypeface()
Typeface getTypeface()void setFadeToColor(int color)
int getFadeToColor()void setLooping(boolean looping)
boolean getLooping()void setLoops(int loops)
int getLoops()void setStartWaitTicks(int ticks)
int getStartWaitTicks()void setEndWaitTicks(int ticks)
int getEndWaitTicks()
```## License
```text
Copyright 2024 Chayan MistryLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```