项目作者: AndersonChoi

项目描述 :
Animated custom listview item examples
高级语言: Java
项目地址: git://github.com/AndersonChoi/animated-custom-listview-example.git
创建时间: 2018-12-13T11:42:45Z
项目社区:https://github.com/AndersonChoi/animated-custom-listview-example

开源协议:MIT License

下载


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

  1. @Override
  2. public View getView(int position, View convertView, ViewGroup parent) {
  3. Context context = parent.getContext();
  4. if (convertView == null) {
  5. LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  6. convertView = inflater.inflate(R.layout.customlist_item, parent, false);
  7. }
  8. //1) Define animation
  9. Animation ...
  10. //2) Set animation on the item parent view
  11. convertView.setAnimation(animation);
  12. return convertView;
  13. }

Download

Just clone this repository.

  1. 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.