标签:
int[] resourses = { R.drawable.one, R.drawable.two }; viewSwitcher = (ViewSwitcher)findViewById(R.id.viewSwitcher); for(int i = 0; i < resourses.length; i++){ ImageView imageView = new ImageView(this); imageView.setImageResource(resourses[i]); viewSwitcher.addView(imageView); }
标签:
原文地址:http://www.cnblogs.com/cn-bloger/p/4701937.html