• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Awesome library in Kotlin using the view animation system to perform tweened animations on Views based on daimajia/AndroidViewAnimations

Android View Animations in Kotlin

Build Status API GitHub code size in bytes

Android View Animations in Java Android View Animations in Java

Get

Gradle

  1. Add this to build.gradle of project gradle dependency
allprojects {
	repositories {
		...
 		maven { url 'https://jitpack.io' }
	}
}
  1. Add this to build.gradle of app gradle dependency
dependencies {
	implementation 'com.github.gayanvoice:android-animations-kotlin:1.0.1'
}

Or

Maven

  1. Add this to build.gradle of project gradle dependency
<repositories>
	<repository>
		<id>jitpack.io</id>
	    	<url>https://jitpack.io</url>
	</repository>
</repositories>
  1. Add this to build.gradle of module gradle dependency
<dependency>
	<groupId>com.github.gayanvoice</groupId>
	<artifactId>android-animations-kotlin</artifactId>
	<version>1.0.1</version>
</dependency>

Usage

Java

Import render animations

import render.animations.*;

Start animation

// Declare TextView
TextView AppleText = findViewById(R.id.TextView);

// Create Render Class
Render render = new Render(MainActivity.this);

// Set Animation
render.setAnimation(Attention.Wobble(AppleText));
render.start();

Kotlin

Import render animations

import render.animations.*

Start animation

// Declare TextView
val textView: TextView = findViewById(R.id.TextView)

// Create Render Class
 val render = Render(this)

// Set Animation
render.setAnimation(Bounce().InDown(textView))
render.start()

Animations

To animate the view, add the class name and specific animation method namesetAnimation to an view. You can include the method setDuration to specify duration of animation. Default value for duration is 1000 Milliseconds. Finally you need to add one of the following classes to the view:

Class Name
Attention Bounce Fade Flip Rotate Slide Zoom

Attention

Attention
Bounce portfolio_view Flash portfolio_view
Pulse portfolio_view Ruberband portfolio_view
Shake portfolio_view Standup portfolio_view
Swing portfolio_view Tada portfolio_view
Wave portfolio_view Wobble portfolio_view

Bounce

Bounce
InDown portfolio_view InUp portfolio_view
InLeft portfolio_view InRight portfolio_view
In portfolio_view

Fade

Fade
InDown portfolio_view InUp portfolio_view
InLeft portfolio_view InRight portfolio_view
OutDown portfolio_view OutUp portfolio_view
OutLeft portfolio_view OutRight portfolio_view
In portfolio_view Out portfolio_view

Flip

Flip
InX portfolio_view InY portfolio_view
OutX portfolio_view OutY portfolio_view

Rotate

Rotate
InDownLeft portfolio_view InDownRight portfolio_view
InUpLeft portfolio_view InUpRight portfolio_view
OutDownLeft portfolio_view OutDownRight portfolio_view
OutUpLeft portfolio_view OutUpRight portfolio_view
In portfolio_view Out portfolio_view

Slide

Slide
InDown portfolio_view InUp portfolio_view
InLeft portfolio_view InRight portfolio_view
OutDown portfolio_view OutUp portfolio_view
OutLeft portfolio_view OutRight portfolio_view

Zoom

Zoom
InDown portfolio_view InUp portfolio_view
InLeft portfolio_view InRight portfolio_view
OutDown portfolio_view OutUp portfolio_view
OutLeft portfolio_view OutRight portfolio_view
In portfolio_view Out portfolio_view

This android view animations library supports number of animations. Go to the java version of this library to see the gallery of animations. Click here https://github.com/gayanvoice/android-view-animations-java#animations

Develop the library

  1. Select Git from Check out project from Version Control in your Android Studio
  2. Paste the repository url and click Clone button
  3. Click Yes to open the repository
  4. Build using the latest Gradle version

Go to https://github.com/gayanvoice/android-vpn-client-ics-openvpn#develop see the steps

Thanks

This library is based on https://github.com/daimajia/AndroidViewAnimations and the Java version of this library is available in https://github.com/gayanvoice/android-view-animations-java

More Repositories

1

top-github-users

Check your ranking in GitHub! Don't forget to star ⭐ this repository.
3,659
star
2

android-vpn-client-ics-openvpn

⭐ Create your Android VPN App by using Android Studio and publish to Google Play Store πŸ€–
Java
584
star
3

android-animations

Perform tweened animations such as Attention, Bounce, Fade, Flip, Rotate, Slide and Zoom on Views
Java
149
star
4

top-github-users-action

Check your ranking in GitHub
JavaScript
122
star
5

github-profile-views-counter

πŸš€ Set up this GitHub profile views counter for your profile that does not require any services to record profile views
103
star
6

most-active-github-users-nodejs

List of most active users by country using GitHub based on commits.top of lauripiispanen/most-active-github-users-counter
JavaScript
63
star
7

githubclicks-github-chrome-extension

Navigate through modules, classes, and declarations in GitHub like an IDE
JavaScript
55
star
8

github-insights-template

πŸš€ Set up this GitHub profile views counter for your profile that does not require any services to record profile views
48
star
9

openvpn-install-for-multiple-users

Share your OpenVPN server with multiple users on Debian, Ubuntu, and CentOS based on Nyr/openvpn-install
Shell
38
star
10

github-profile-views-counter-action

GitHub Action for setting up insights of your repositories on your workflow without using any third-party apps.
JavaScript
25
star
11

my-profile-views-counter

22
star
12

github-insights

GitHub Action for setting up insights of your repositories on your workflow without using any third-party apps.
JavaScript
17
star
13

remote-config

A remote library to config variables, appearance and behavior of your app without publishing an app update
Java
16
star
14

android-layout-transitions-kotlin

Transition easing-functions for Android Layouts in Kotlin
Kotlin
10
star
15

react-native-apps

A collection of React Native apps in Expo + TypeScript
TypeScript
6
star
16

insights

4
star
17

twitter-bot-java

witter-bot-java (Twitter Bot Java) is an automated bot written in Java based on Spring framework
Java
3
star
18

convert-website-to-android-app

Kotlin
3
star
19

githubstats-asp-net-core

C#
2
star
20

asp-net-core-simple-web-app

C#
2
star
21

node-chart-exec

An executable binary for creating charts in Node.js
JavaScript
2
star
22

cobot-iot-to-adt-ingestion-function-app

C#
1
star
23

WaleAirlineCompany

HTML
1
star
24

100638182-Cobot-ADT-TwinOfTwin-EventGrid-Function-App

C#
1
star
25

100638182-Cobot-IoT-Command-Function-App

C#
1
star
26

100638182-Cobot-ADT-NoSQL-EventGrid-Function-App

C#
1
star
27

100638182-IOT-App

Java
1
star
28

library-system-spring

HTML
1
star
29

tensorflowhub-retrain.py

Using TensorFlow hub to retrain a data set and testing
Python
1
star
30

english-news-sri-lanka

Java
1
star
31

MCB-Status-Manager

C#
1
star
32

javascript-action

JavaScript Action makes it easy to commit all your changes to repository with CI/CD.
JavaScript
1
star
33

lanka-news-app

Java
1
star
34

100638182-Cobot-Client-App

Python CL app for the device to handle Cobot IoT ingestions
Python
1
star
35

addqual-cobot-calibration-app

Python
1
star
36

100638182-Iot-Ingestion-Function-App

C#
1
star
37

gayanvoice

1
star
38

asp-net-core-web-app

This guide walks you through the process of deploying an ASP.NET Core 3.1 web app to IBM Cloud Foundry
HTML
1
star
39

DjangoApp

Python
1
star
40

SAASystem

C#
1
star
41

addqual-adt-command-event-function-app

C#
1
star
42

100638182-Adt-Ingestion-Function-App

C#
1
star
43

volley-kotlin

Volley-Kotlin is the Kotlin implementation of Google Volley HTTP library
Java
1
star
44

pizza-planet-web-app

C#
1
star
45

100638182-Cobot-ADT-Ingestion-Function-App

C#
1
star
46

100638182-Cobot-ADT-Initialize-Function-App

C#
1
star
47

100638182-Cobot-Web-App

HTML
1
star
48

CobotBasicProject

Python
1
star
49

ur-cobot-10e-and-robotiq-gripper-python

Control your UR Cobot 10e and Robotiq Gripper using Pure Python, Not UR Script!
Python
1
star
50

addqual-adt-twin-event-function-app

C#
1
star
51

AirlineCompany

HTML
1
star
52

ini-reader

How to read and write .ini files in Windows Operating System in C++ Visual Studio
C++
1
star
53

ASystem

Database Assignment (User - Staff/Management/Admin Pw-1234)
C#
1
star