废话一句:TranslateAnimation(移动) ScaleAnimation(大小)AlphaAnimation(透明度)
上代码
public class MainActivity extends Activity {
private List<Map<String, Object>> itemList;
private TextView tvPrevious, tvCurrent, tvNext;
private ImageView ivCurrent, ivSelect;
private final int DURATION = 600; // 动画时长
private final int MSG_UPDATE_THE_CONTENT = 1;
private int currentPosition = 0;
@SuppressLint("HandlerLeak")
Handler handler = new Handler() {
public v......
阅读全文