All Projects → DenisMondon → easy-animated-vector-drawable

DenisMondon / easy-animated-vector-drawable

Licence: Apache-2.0 license
A library that helps using Animated Vector Drawables.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to easy-animated-vector-drawable

Fab
🛍️ A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.
Stars: ✭ 24 (-40%)
Mutual labels:  fab, floating-action-button
LavaFab
💧 Android floating action button menu with "lava" animation
Stars: ✭ 51 (+27.5%)
Mutual labels:  fab, floating-action-button
AnimatedVectorDrawableCompat-play-to-reset-button
An Android app using the AnimatedVectorDrawable support library
Stars: ✭ 56 (+40%)
Mutual labels:  vector-drawable, animated-vector-drawables
Fabulousfilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa
Stars: ✭ 2,477 (+6092.5%)
Mutual labels:  fab, floating-action-button
Material-Design-Android
My stash for all things material, animations, typography, iconography, transitions, Animated VD, Color Palette API, UI design, and more.
Stars: ✭ 38 (-5%)
Mutual labels:  animated-vector-drawables
aspect-ratio-imageview
A simple imageview which scales the width or height aspect with the given ratio
Stars: ✭ 72 (+80%)
Mutual labels:  imageview
react-native-vector-image
iOS/Android native vector assets generated from SVG
Stars: ✭ 224 (+460%)
Mutual labels:  vector-drawable
SquareImageView
SquareImageView is a simple wrapper library for Android ImageView
Stars: ✭ 28 (-30%)
Mutual labels:  imageview
ImageView
Qt自定义图片显示控件-支持加载本地图片和网络图片,并支持缓存
Stars: ✭ 14 (-65%)
Mutual labels:  imageview
svg2vector
Online batch converter of SVG images to Android vector drawable XML resource files
Stars: ✭ 39 (-2.5%)
Mutual labels:  vector-drawable
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (+220%)
Mutual labels:  imageview
FaceAware-Android
this helps to auto zoom for face on ImageView
Stars: ✭ 46 (+15%)
Mutual labels:  imageview
Parrot
A simple way to handle remote image in Kotlin.
Stars: ✭ 21 (-47.5%)
Mutual labels:  imageview
RoundImage
This library is used for converting Bitmap or Drawable images to Round or Circular Shape. Round image view for Android or Circular Image View for Android.Tags Android Round Circularimageview Circle Rounded Corner imageview library.
Stars: ✭ 42 (+5%)
Mutual labels:  imageview
image-zoom-view
Imageview zoom library for android
Stars: ✭ 52 (+30%)
Mutual labels:  imageview
FabDialog
🎈 Fab into Dialog Animation on Android
Stars: ✭ 36 (-10%)
Mutual labels:  fab
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+142.5%)
Mutual labels:  imageview
CombineView
View that combines multiple images
Stars: ✭ 27 (-32.5%)
Mutual labels:  imageview
Hidely
Custom Views that can hide/show a View with some Animations (inspired by the Android FAB)
Stars: ✭ 46 (+15%)
Mutual labels:  fab
NoiseView
Android library written in kotlin that add a noise effect to image.
Stars: ✭ 47 (+17.5%)
Mutual labels:  imageview

Easy Animated Vector Drawable

Demo

alt text alt text

Download

dependencies {
    implementation 'com.blunderer:easy-animated-vector-drawable:1.0.5'
}

How to use it

Simply call setImageType() on any ImageView and give it the type of the drawable:

    ImageView imageView = (ImageView) findViewById(R.id.image_view);

    // Kotlin
    imageView.setImageType(EasyAnimatedVectorDrawable.Type.PLAY)
    // Java
    EasyAnimatedVectorDrawable.setImageType(imageView, EasyAnimatedVectorDrawable.Type.PLAY);

If you want to change the color of the drawable, just give also the color:

    // Kotlin
    imageView.setImageType(EasyAnimatedVectorDrawable.Type.PLAY, Color.RED)
    // Java
    EasyAnimatedVectorDrawable.setImageType(imageView, EasyAnimatedVectorDrawable.Type.PLAY, Color.RED);

or

    // Kotlin
    imageView.setImageType(EasyAnimatedVectorDrawable.Type.PLAY, ContextCompat.getColor(context, R.color.red))
    // Java
    EasyAnimatedVectorDrawable.setImageType(imageView, EasyAnimatedVectorDrawable.Type.PLAY, ContextCompat.getColor(context, R.color.red));

Here is the list of all currently supported types:

  • PLAY

  • PAUSE

  • STOP

  • LEFT_ARROW

  • UP_ARROW

  • RIGHT_ARROW

  • DOWN_ARROW

CUSTOMIZATION

The included drawable types are not useful for your app?
You can use your own animated vector drawables like this:
COMING SOON

License

Copyright 2019 Denis Mondon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].