Skip to content

AndersonChoi/animated-custom-listview-example

Repository files navigation

animated-custom-listview-example 🎊

platform API license

Animted custom listview example for android.

Provide animations

animated-custom-listview-example provides three effects.

  • Alpha with translate animation
  • Alpha animation
  • Scale animation

Demo app

Usage

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    Context context = parent.getContext();
    if (convertView == null) {
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        convertView = inflater.inflate(R.layout.customlist_item, parent, false);
    }
    
    //1) Define animation
    Animation ...
    
    //2) Set animation on the item parent view
    convertView.setAnimation(animation);

    return convertView;
}

Download

Just clone this repository.

git clone https://github.com/AndersonChoi/animated-custom-listview-example.git

Contribute & Report issue

Did you encounter bugs? Pull request here or report them here. The more relevant information you provide the easier and faster it can be resolved.

License

animated-custom-listview-example is released under the MIT license. See LICENSE for details.

About

Animated custom listview item examples

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages