Skip to content

Commit a9f9137

Browse files
committed
add fade gif to readme
1 parent 49b788d commit a9f9137

4 files changed

Lines changed: 26 additions & 18 deletions

File tree

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ see [iOS Effects](https://github.com/lexrus/LTMorphingLabel)
1414

1515
| type | gif |
1616
| :-- | :-- |
17-
| [Scale(Default)](https://github.com/hanks-zyh/HTextView/blob/master/htextview-library/src/main/java/com/hanks/htextview/animatetext/ScaleText.java) | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo3.gif) |
18-
| [EvaporateText](https://github.com/hanks-zyh/HTextView/blob/master/htextview-library/src/main/java/com/hanks/htextview/animatetext/EvaporateText.java) | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo5.gif) |
19-
| [Fall](https://github.com/hanks-zyh/HTextView/blob/master/htextview-library/src/main/java/com/hanks/htextview/animatetext/FallText.java) | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo6.gif) |
20-
| [Line](https://github.com/hanks-zyh/HTextView/blob/master/htextview-library/src/main/java/com/hanks/htextview/animatetext/LineText.java) | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo7.gif) |
21-
| [Typer](https://github.com/hanks-zyh/HTextView/blob/master/htextview-library/src/main/java/com/hanks/htextview/animatetext/TyperText.java) | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/typer.gif) |
22-
| [Rainbow](https://github.com/hanks-zyh/HTextView/blob/master/htextview-library/src/main/java/com/hanks/htextview/animatetext/RainBowText.java) | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/rainbow.gif) |
17+
| Scale | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo3.gif) |
18+
| Evaporate | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo5.gif) |
19+
| Fall | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo6.gif) |
20+
| Line | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/demo7.gif) |
21+
| Typer | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/typer.gif) |
22+
| Rainbow | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/rainbow.gif) |
23+
| Fade | ![](https://github.com/hanks-zyh/HTextView/blob/master/screenshot/fade.gif) |
2324

2425
## Usage
2526

demoapp/src/main/java/com/example/demoapp/BaseActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
public class BaseActivity extends AppCompatActivity {
1414
String[] sentences = {"What is design?",
15-
"Design",
1615
"Design is not just",
1716
"what it looks like and feels like.",
1817
"Design is how it works. \n- Steve Jobs",

demoapp/src/main/res/layout/activity_fade_text_view.xml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,25 @@
99
android:orientation="vertical"
1010
android:padding="16dp">
1111

12-
<com.hanks.htextview.fade.FadeTextView
13-
android:id="@+id/textview"
14-
android:layout_width="240dp"
15-
android:layout_height="150dp"
16-
android:gravity="right"
17-
android:letterSpacing="0.08"
18-
android:lineSpacingMultiplier="1.3"
19-
android:text="但愿所有漂泊的人都有酒喝,但愿所有孤独的人都会唱歌。"
20-
android:textColor="#fff"
21-
android:textSize="20sp"
22-
app:animationDuration="1000"/>
12+
<LinearLayout
13+
android:layout_width="match_parent"
14+
android:layout_height="200dp"
15+
android:gravity="center"
16+
android:orientation="vertical">
17+
18+
<com.hanks.htextview.fade.FadeTextView
19+
android:id="@+id/textview"
20+
android:layout_width="match_parent"
21+
android:layout_height="wrap_content"
22+
android:layout_marginLeft="30dp"
23+
android:gravity="left|center_vertical"
24+
android:letterSpacing="0.08"
25+
android:lineSpacingMultiplier="1.2"
26+
android:text="但愿所有漂泊的人都有酒喝,但愿所有孤独的人都会唱歌。"
27+
android:textColor="#fff"
28+
android:textSize="18sp"
29+
app:animationDuration="2000"/>
30+
</LinearLayout>
2331

2432
<com.hanks.htextview.fade.FadeTextView
2533
android:id="@+id/textview2"

screenshot/fade.gif

386 KB
Loading

0 commit comments

Comments
 (0)