使文字出现波纹效果--第三方开源--Titanic

来源:互联网 发布:early stopping算法 编辑:程序博客网 时间:2024/05/23 23:30

下载地址:https://github.com/RomainPiel/Titanic
使用的时候直接将代码复制过来即可(注意res文件下有张波浪图也要一起复制)



xml代码:

<com.romainpiel.titanic.library.TitanicTextView        android:id="@+id/text"        android:layout_width="match_parent"        android:layout_height="match_parent"        android:gravity="center"        android:text="你好"        android:textSize="40sp" />
java代码:

titanic = new Titanic();titanic.start(myTitanicTextView);
取消:

titanic.cancel();


0 0
原创粉丝点击