Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

mikepenz/AnimatedGridView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnimatedGridView

AnimatedGridView extends the default GridView and adds some new functions to animate the deletion of rows. You just have to choose the AnimatedGridView and extend the AnimatedAdapter (which extends the BaseAdapter).

This library also adds a HeaderGridView, like the normal ListView. The HeaderGridView is from the Google Source Code of their gallery app.

Including in your project

###Using Maven AnimatedGridView Library is pushed to [Maven Central], so you just need to add the following dependency to your build.gradle.

dependencies {
	compile 'com.tundem.widget.gridview:library:1.1.3-SNAPSHOT@aar'
}

Usage

via code or via xml (sample)

<com.tundem.widget.gridview.AnimatedGridView
    ...
 />

delete fields and animate the gridview

  • start the animation by calling following method
animateDeleteCells(mRemovedFieldsToAnimate, 200);
  • you can also define a listener to do something after the fields were removed
setAnimationListener(new AnimationListener() {
        @Override
        public void onAnimationFinish() {
            ...
	}
});

add fields and animate the gridview

  • start the animation by calling following method
//Items to add:
LinkedList<Object> items = new LinkedList<Object>();
items.add(1);
items.add(2);
items.add(3);
items.add(4);
items.add(5);
items.add(6);
//animate the new items
agv.animateAddCells(items, 200);

Used in following projects

Numbers (Only remove animation)

Developed By

License

Copyright 2014 Mike Penz

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.

About

A simple library which adds some basic animation if you delete fields. There's also a HeaderGridView if you need such a view for your projects :D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages