Android Text Animations

User Management System
Learn Kotlin, Retrofit, MVVM and MySQL using this all-in-one app. It is designed to be beginner friendly.

This tutorial gives you the opportunity to animate your messages in a cool way using some cool libraries.

(a). TextSurface

  • TextSurface


A little animation framework which could help you to show message in a nice looking way.


  1. Create TextSurface instance or add it in your layout.
  2. Create Text instancies with TextBuilder defining appearance of text and position:
  Text textDaai = TextBuilder
  1. Create animations and pass them to the TextSurface instance:
         new Sequential(
                 Slide.showFrom(Side.TOP, textDaai, 500),
                 Alpha.hide(textDaai, 1500)

See full sample here.

Adjusting animations

  • To play animations sequentially use

  • To play animations simultaneously use

  • Animations/effects could be combined like this:

    new Parallel(, 500),, 500, Color.RED))

    i.e. alpha and color of text will be changed simultaneously in 500ms

Adding your own animations/effects

There're two basic classes which you could extend to add custom animation:

Proguard configuration

The framework is based on standard android animation classes which uses reflection extensively. To avoid obfuscation you need to exclude classes of the framework:

-keep class** { *; }


repositories {
    maven { url "" }
dependencies {
    compile 'com.github.elevenetc:textsurface:0.9.1'


A little animation framework which could help you to show message in a nice looking way
No. Key Value
1. Created 2015-10-13T00:21:46Z
2. Updated 2021-05-28T12:18:36Z
3. Stars 2176
5. Forks 252
6. Language Java
7. Lib Author elevenetc

This Library was written By: elevenetc

Learn Android Retrofit using our course

Android MySQL Retrofit2 Multipart CRUD,Search,Pagination rating

When I was a 2nd year Software Engineering student, I buillt a now defunct online tool called Camposha(from Campus Share) using my then favorite language C#(ASP.NET) to compete OLX in my country(Kenya). The idea was to target campus students in Kenya. I got a few hundred signups but competing OLX proved too daunting. I decided to focus on my studies, learning other languages like Java,Python,Kotlin etc while meanwhile publishing tutorials at my YouTube Channel ProgrammingWizards TV which led to this site( Say hello or post me a suggestion: . Follow me below; Github , and on my channel: ProgrammingWizards TV

We will be happy to hear your thoughts

Leave a reply

seventy one − = sixty two

Reset Password
Compare items
  • Total (0)
Shopping cart