ArrayList<ImageView imageViews = new ArrayList<ImageView ();
//创建一个handler对象,复写handlerMessage方法,用switch...(R.id.viewpager_vp);
//更加图片int数组资源的数量,动态的创建ImageView控件.就是有几张图片,创建几个ImageView,for循环
for (int x = 0; x...< imageResIds.length; x++) {
//创建ImageView对象
ImageView imageView = new ImageView(this);
//通过该对象添加图片资源...,动态的创建点222
*/
public void dot() {
//创建一个View对象;
View view = new View(this);
//为这个View对象设置背景setBackgroundResource...--此处状态选择器的选择属性是state_selected,而不是state_pressed,
要知道他们的区别,引用图片drawable,注意V是大写,
点是根据图片的张数,动态创建的,所有我们的View