• Stars
    star
    338
  • Rank 120,744 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated about 8 years ago

Reviews

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

Repository Details

ViewAnimator view with a lollipop style reveal effect

AndroidLibs ViewRevealAnimator Widget

ViewAnimator view with a lollipop style reveal effect. Regular animation can be set (just like the default ViewAnimator) for android < 21.

Installation

Just add this to your gradle build script:

    compile 'it.sephiroth.android.library.viewrevealanimator:view-reveal-animator:+'

Usage

    <it.sephiroth.android.library.viewrevealanimator.ViewRevealAnimator
        android:layout_centerHorizontal="true"
        android:id="@+id/animator"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:animationDuration="@android:integer/config_longAnimTime"
        app:vra_hideBeforeReveal="true"
        android:measureAllChildren="true"
        android:animateFirstView="true"
        android:outAnimation="@anim/out_animation"
        android:inAnimation="@anim/in_animation"
        android:interpolator="@android:interpolator/accelerate_decelerate">


        <Your Views here />


    </it.sephiroth.android.library.viewrevealanimator.ViewRevealAnimator>

Then in your code:

    ViewRevealAnimator mViewAnimator = (ViewRevealAnimator) findViewById(R.id.animator);

To show the next or previos index :

    mViewAnimator.showNext();
    mViewAnimator.showPrevious();

or:

    mViewAnimator.setDisplayedChild(mViewAnimator.getDisplayedChild()+1, true, new Point(250, 250));

where the first parameter is the targetChild to display, second means animation on/off, and third parameter (optional) is to set a custom origin for the reveal/hide animation

Show previous view:

Preview

Preview

License

The MIT License (MIT)
[OSI Approved License]
The MIT License (MIT)

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

More Repositories

1

ImageViewZoom

Android ImageView widget with zoom and pan capabilities
Java
1,893
star
2

android-target-tooltip

Create Toast like tooltips, but targets can be specified, plus custom properties and features
Kotlin
1,467
star
3

Material-BottomNavigation

Bottom Navigation widget component inspired by the Google Material Design Guidelines at https://www.google.com/design/spec/components/bottom-navigation.html
Kotlin
1,461
star
4

HorizontalVariableListView

Horizontal list view for Android which allows variable items widths
Java
859
star
5

AndroidWheel

Custom wheel widget for android
Java
385
star
6

NumberSlidingPicker

Android Number Picker with gestures
Kotlin
352
star
7

android-floating-action-menu

Floating Action Menu for Android. Inspired by the Google Plus floating menu
Java
239
star
8

purePDF

A complete actionscript PDF library
ActionScript
141
star
9

AndroidUIGestureRecognizer

AndroidGestureRecognizer is an Android implementation of the Apple's UIGestureRecognizer framework
Kotlin
134
star
10

Android-Exif-Extended

Exif extended library for Android, based on jhead c library (http://www.sentex.net/~mwandel/jhead/)
Java
134
star
11

OverlayMenu

Android Overlay Menu
Java
120
star
12

Android-Easing

Ligh weight android easing
Java
105
star
13

RangeSeekBar

A Range Slider for Android.
Java
99
star
14

Tri-State-Checkbox

3 State Checkbox for android in pure Material Style
Java
59
star
15

RxBroadcast

Reactive Broadcast for Android
Java
12
star
16

ABTest

Simple library for ab testing in android
Java
11
star
17

vignette_demo

Simple demo on how to create a "Vignette" effect in Android
Java
10
star
18

SubtleRater

Discreet AppRater for Android
Java
10
star
19

HListViewAnimations

Based on ListViewAnimations, but target to the HListView instead
Java
10
star
20

Android-MultiSharing

Example on how to do multiple sharing in Android
Java
9
star
21

Appunti

Source code for the Note app available at https://play.google.com/store/apps/details?id=it.sephiroth.android.app.appunti
Kotlin
8
star
22

AlertDialogCustomStyleDemo

Demonstrate how to effectively customize the Android AlertDialog
Java
8
star
23

SBB-Tactile

SBB Tactile Demo App
Kotlin
7
star
24

TwitterAndroidSDK

Twitter SDK for Android, using Twitter4j
Java
7
star
25

python-adb-client

Pure python adb client
Python
5
star
26

android-disk-multi-cache

Multi Cache purpose based on DiskLruCache
Java
5
star
27

radb_client

adb client written in rust
Rust
4
star
28

DiskLruImageCache

Simple file based image cache
Java
4
star
29

ascii_generator

simple python script to print and convert images to ascii art
Python
4
star
30

material_drawable

Provides material background drawables to views
Kotlin
4
star
31

go_adb_client

Go adb client
Go
3
star
32

SimpleLogger

Simple Android logger
Java
2
star
33

git-owners

Simple python utility to generate a report about owners of files inside a git repository
Python
2
star
34

SimpleLruCache

Simple LruCache
Kotlin
2
star
35

kotlin_extensions

Misc Kotlin Extensions for Android
Kotlin
2
star
36

lollipop-transitions

Generic Transitions to be used with the Android 5.0 Transition Framework
1
star
37

Intellij-Settings

1
star
38

AndroidStudio-Settings

Java
1
star
39

JavaCheckStyle

java checkstyle
1
star