Animted custom listview example for android.
animated-custom-listview-example provides three effects.
- Alpha with translate animation
- Alpha animation
- Scale animation
@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;
}
Just clone this repository.
git clone https://github.com/AndersonChoi/animated-custom-listview-example.git
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.
animated-custom-listview-example is released under the MIT license. See LICENSE for details.