Skip to content

Commit 639ce38

Browse files
authored
Create README.md
1 parent de99c75 commit 639ce38

1 file changed

Lines changed: 106 additions & 0 deletions

File tree

README.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Fade-InTextView
2+
> Not just another typewriter library.
3+
4+
![Release](https://jitpack.io/v/ChahatGupta/FadeInTextView-Android.svg)
5+
6+
Say hi to Fade-In TextView! A custom TextView library which makes every character appear with a smooth alpha animation.
7+
8+
The Fade-In TextView library inherits its properties directly from the native TextView class, which means that all the native TextView methods are supported.
9+
There are practically no limitations including multiline support. The library also has some of its own methods and attributes which offer full control over the View.
10+
11+
![](screencast/Fade-In TextView.gif)
12+
13+
## Installation
14+
15+
### Gradle
16+
17+
Step 1. Add the JitPack repository to your build file
18+
19+
```sh
20+
allprojects {
21+
repositories {
22+
...
23+
maven { url 'https://jitpack.io' }
24+
}
25+
}
26+
```
27+
28+
Step 2. Add the dependency
29+
30+
```sh
31+
dependencies {
32+
implementation 'com.github.ChahatGupta:FadeInTextView-Android:1.0'
33+
}
34+
```
35+
36+
### Maven
37+
38+
Step 1. Add the JitPack repository to your build file
39+
40+
```sh
41+
<repositories>
42+
<repository>
43+
<id>jitpack.io</id>
44+
<url>https://jitpack.io</url>
45+
</repository>
46+
</repositories>
47+
```
48+
49+
Step 2. Add the dependency
50+
51+
```sh
52+
<dependency>
53+
<groupId>com.github.ChahatGupta</groupId>
54+
<artifactId>FadeInTextView-Android</artifactId>
55+
<version>1.0</version>
56+
</dependency>
57+
```
58+
59+
## Usage
60+
61+
### In the XML layout
62+
63+
```sh
64+
<believe.cht.fadeintextview.TextView
65+
android:id="@+id/textView"
66+
android:layout_width="match_parent"
67+
android:layout_height="wrap_content"
68+
android:textSize="30sp"
69+
android:textColor="@android:color/black"
70+
app:letterDuration="250"/>
71+
```
72+
73+
### In the Java class
74+
75+
```sh
76+
believe.cht.fadeintextview.TextView textView textView = (believe.cht.fadeintextview.TextView) findViewById(R.id.textView);
77+
78+
textView.setLetterDuration(250); // sets letter duration programmatically
79+
textView.isAnimating(); // returns current animation state (boolean)
80+
textView.setText(); // sets the text with animation
81+
```
82+
83+
## Release History
84+
85+
* 1.0
86+
* Initial release
87+
88+
## Known Bugs
89+
90+
* the default android:text attribute to set the initial text doesn't seem to work, will be fixed in coming versions.
91+
92+
## Meta
93+
94+
Your Name – [@i_m_cht](https://twitter.com/i_m_cht) – admin@believe-labs.co
95+
96+
Distributed under the MIT license. See ``LICENSE`` for more information.
97+
98+
[https://github.com/yourname/github-link](https://github.com/dbader/)
99+
100+
## Contributing
101+
102+
1. **Fork** it (<https://github.com/ChahatGupta/FadeInTextView-Android/fork>)
103+
2. **Clone** the project to your own machine
104+
3. **Commit** changes to your own branch
105+
4. **Push** your work back up to your fork
106+
5. Submit a **Pull request** so that I can review changes

0 commit comments

Comments
 (0)