۱۳۹۴/۱۱/۰۳, ۰۴:۳۲ ب.ظ
سلام
فکر کنم این کد کارتون رو راه بندازه
فکر کنم این کد کارتون رو راه بندازه
کد:
Get ImageView Object */
ImageView iv = (ImageView) view.findViewById(R.id.refresh_action_view);
/* Create Animation */
Animation rotation = AnimationUtils.loadAnimation(context, R.anim.refresh_button_anim);
rotation.setRepeatCount(Animation.INFINITE);
/* start Animation */
iv.startAnimation(rotation);
For Stop Animation:
iv.clearAnimation();