All Projects → rosenpin → Fading Text View

rosenpin / Fading Text View

A TextView that changes its content automatically every few seconds

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Fading Text View

Fole
Fole is a simple library to collapse and expand a TextView.
Stars: ✭ 67 (-96.04%)
Mutual labels:  textview
Pincodeinputview
A input text view for entering pin code.
Stars: ✭ 108 (-93.61%)
Mutual labels:  textview
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (-92.67%)
Mutual labels:  textview
Leotextview
🐬A high-performance rich editor develop with swift on iOS platform, based on TextKit.
Stars: ✭ 87 (-94.86%)
Mutual labels:  textview
Nextgrowingtextview
📝 The next in the generations of 'growing textviews' optimized for iOS 8 and above.
Stars: ✭ 1,540 (-8.93%)
Mutual labels:  textview
Szmentionsswift
Library to help handle mentions
Stars: ✭ 109 (-93.55%)
Mutual labels:  textview
Rwidgethelper
Android UI 快速开发,专治原生控件各种不服
Stars: ✭ 996 (-41.1%)
Mutual labels:  textview
Xrichtext
一个Android富文本类库,支持图文混排,支持编辑和预览,支持插入和删除图片。
Stars: ✭ 1,639 (-3.08%)
Mutual labels:  textview
Jhform
JhForm - 自定义表单工具,更加简单,快捷的创建表单、设置页面
Stars: ✭ 108 (-93.61%)
Mutual labels:  textview
Android Textview Linkbuilder
Insanely easy way to define clickable links within a TextView.
Stars: ✭ 1,549 (-8.4%)
Mutual labels:  textview
Tagging
A TextView that provides easy to use tagging feature for Mention or Hashtag
Stars: ✭ 91 (-94.62%)
Mutual labels:  textview
Materialbadgetextview
As the name describes, this is an Android library that you can use to show new messages badge and new features badge.
Stars: ✭ 1,331 (-21.29%)
Mutual labels:  textview
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (-5.91%)
Mutual labels:  textview
Ariana
Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically.
Stars: ✭ 74 (-95.62%)
Mutual labels:  textview
Drawabletextview
自定义控件 :drawable 跟随TextView居中 The drawable follows the text centered
Stars: ✭ 124 (-92.67%)
Mutual labels:  textview
Android Material Design In Practice
A project to demonstrate the latest material design principles with simple examples. It has additional examples on how to easily scale texts on different screen sizes without extra effort.
Stars: ✭ 67 (-96.04%)
Mutual labels:  textview
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-93.49%)
Mutual labels:  textview
Tytext
text asynchronous rendering by TextKit for iOS
Stars: ✭ 127 (-92.49%)
Mutual labels:  textview
Readmoretextview
A Custom TextView with trim text
Stars: ✭ 1,606 (-5.03%)
Mutual labels:  textview
Rotatingtext
A periodic text updating library
Stars: ✭ 1,558 (-7.87%)
Mutual labels:  textview

FadingTextView

Download DOCS API

A TextView that changes its content automatically every few seconds

example

Demo app

A demo app is available on Google Play:

Get it on GOogle Play

Usage

Add this to your project build.gradle

allprojects {
    repositories {
        jcenter()
    }
}

Add this to your module build.gradle

dependencies {
    compile 'com.tomer:fadingtextview:2.6'
}

Texts

First, you need to create a string-array in your values folder like so:

<string-array name="examples">
     <item>Hello</item>
     <item>Fading TextView</item>
</string-array>

Then in your layout

<com.tomer.fadingtextview.FadingTextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:texts="@array/examples" />

Timeout

You can set the amount of time that each text is visible by using the timeout attribute and by specifying the length of time in milliseconds. Like so:

app:timeout="500"
<com.tomer.fadingtextview.FadingTextView
            android:id="@+id/fadingTextView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:timeout="500"
            app:texts="@array/examples" />

Updating the view dynamically

To set the text dynamically, you can use

String[] texts = {"text1","text2","text3"};
FadingTextView FTV = (FadingTextView) findViewById(R.id.fadingTextView);
FTV.setTexts(texts); //You can use an array resource or a string array as the parameter

To set the timeout between text changes you can use:

//For text change once every hour
FTV.setTimeout(60, MINUTES);

//For text change once every half a minute
FTV.setTimeout(0.5, MINUTES);

//For text change every 10 seconds
FTV.setTimeout(10, SECONDS);

//For text change every 500 milliseconds (0.5 seconds)
FTV.setTimeout(500, MILLISECONDS);

Shuffle

You can randomize the order of the strings using the shuffle method
Note: you will need to run the shuffle method after each time you update the view
Example:

FTV.setTexts(texts);
FTV.shuffle();

Full Documentation

Click me for the full documentation

License

Copyright (c) Tomer Rosenfeld 2016-2017

Licensed 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 at

  http://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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].