All Projects → elevenetc → Textsurface

elevenetc / Textsurface

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

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Textsurface

Kotlin-Animation-DSL
simplify Android animation code by redefining API, use just one third of code to create animation compare to origin Android API
Stars: ✭ 45 (-98.01%)
Mutual labels:  android-ui, animation-framework
Hollowkit
自己常用的一些工具的合集
Stars: ✭ 173 (-92.36%)
Mutual labels:  android-ui
Balloon
🎈 Modernized and sophisticated tooltips, fully customizable with an arrow and animations on Android.
Stars: ✭ 2,242 (-0.97%)
Mutual labels:  android-ui
Awesomedialog
A Beautiful Dialog Library for Kotlin Android
Stars: ✭ 163 (-92.8%)
Mutual labels:  android-ui
Swipelayout
A library what allows you to execute a swipe for the android platform
Stars: ✭ 150 (-93.37%)
Mutual labels:  android-ui
Composecookbook
A Collection on all Jetpack compose UI elements, Layouts, Widgets and Demo screens to see it's potential
Stars: ✭ 3,516 (+55.3%)
Mutual labels:  android-ui
Materialdrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
Stars: ✭ 11,498 (+407.86%)
Mutual labels:  android-ui
Wiggle
An Android helper library for delayed scrolling
Stars: ✭ 179 (-92.09%)
Mutual labels:  android-ui
Advancedrecycleview
♻ RecycleView with multiple view types, inner horizontal RecycleView and layout animation
Stars: ✭ 172 (-92.4%)
Mutual labels:  android-ui
Android About Page
Create an awesome About Page for your Android App in 2 minutes
Stars: ✭ 1,980 (-12.54%)
Mutual labels:  android-ui
Glidetoast
GlideToast is a android library to implement flying Toast Animation
Stars: ✭ 162 (-92.84%)
Mutual labels:  android-ui
Swipeactionview
Android swipe-able view, which allows users to perform actions with swipe gestures.
Stars: ✭ 153 (-93.24%)
Mutual labels:  android-ui
Krumbsview
🍞 The ultimate breadcrumbs view for Android!
Stars: ✭ 170 (-92.49%)
Mutual labels:  android-ui
Flourish
🎩 Flourish implements dynamic ways to show up and dismiss layouts with animations.
Stars: ✭ 150 (-93.37%)
Mutual labels:  android-ui
Slidingintroscreen
An Android library designed to simplify the creation of introduction screens.
Stars: ✭ 174 (-92.31%)
Mutual labels:  android-ui
Filltextview
一个填空题控件
Stars: ✭ 149 (-93.42%)
Mutual labels:  android-ui
Customrefreshview
一个支持网络错误重试,无数据页(可自定义),无网络界面(可自定义)的上拉加载更多,下拉刷新控件
Stars: ✭ 160 (-92.93%)
Mutual labels:  android-ui
Springview
🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Stars: ✭ 1,936 (-14.49%)
Mutual labels:  android-ui
Konfetti
Celebrate more with this lightweight confetti particle system 🎊
Stars: ✭ 2,278 (+0.62%)
Mutual labels:  android-ui
Jetquotes
🔖 A Quotes Application built to Demonstrate the Jetpack Compose UI
Stars: ✭ 179 (-92.09%)
Mutual labels:  android-ui

TextSurface

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

Usage

  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
		.create("Daai")
		.setSize(64)
		.setAlpha(0)
		.setColor(Color.WHITE)
		.setPosition(Align.SURFACE_CENTER).build();
  1. Create animations and pass them to the TextSurface instance:
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.java

  • To play animations simultaneously use Parallel.java

  • Animations/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:

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

http://www.apache.org/licenses/LICENSE-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].