开发者

Is it possible to add effects to text in a TextView?

In my splash开发者_运维知识库 screen I have a TextView that it shows the name of application. Is it possible to add effect(s) (for example shade) to this text?


You can use something like this to put the shadow, it works

<TextView
    android:id="@+id/text"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    android:shadowColor="#555555"
    android:shadowDx="5.0"
    android:shadowDy="5.0"
    android:shadowRadius="3.0"
    />


Yes of-course you can make your splash screen more innovative with Shimmer Effect.

If you implement then name of application on splash screen will have glow effect from left to right. You can see my answer for this effect. https://stackoverflow.com/a/34327956/2022000

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜