elevenetc/TextSurface
elevenetc/TextSurface has 2,358 GitHub stars and 245 forks. GitHot measured 0 stars in 24 hours, -1 in 7 days, and 0 in 15 days. Last checked 2026-11-23 06:03 UTC. Last push 2021-02-17.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
À propos
Un petit framework d’animation pour afficher les messages de façon élégante
Création et médiasREADME.md
OriginalTextSurface
A little animation framework which could help you to show message in a nice looking way.

Usage
- Create
TextSurfaceinstance or add it in your layout. - Create
Textinstancies withTextBuilderdefining appearance of text and position:
Text textDaai = TextBuilder
.create("Daai")
.setSize(64)
.setAlpha(0)
.setColor(Color.WHITE)
.setPosition(Align.SURFACE_CENTER).build();
- Create animations and pass them to the
TextSurfaceinstance:
textSurface.play(
new Sequential(
Slide.showFrom(Side.TOP, textDaai, 500),
Delay.duration(500),
Alpha.hide(textDaai, 1500)
)
);
See full sample here.
Adjusting animations
To play animations sequentially use
Sequential.javaTo play animations simultaneously use
Parallel.javaAnimations/effects could be combined like this:
new Parallel(Alpha.show(textA, 500), ChangeColor.to(textA, 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:
AbstractSurfaceAnimation.javato animate basic parameters likealpha,translation,scaleand others. (SeeAlpha.javaorChangeColor.java)ITextEffect.javainterface which could be used for more complex animations. (SeeRotate3D.javaorShapeReveal.java)
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 su.levenetc.android.textsurface.** { *; }
Download
repositories {
maven { url "https://jitpack.io" }
}
//...
dependencies {
//...
compile 'com.github.elevenetc:textsurface:0.9.1'
}
Licence
Explorer des projets similaires
Chargement…