问题描述:安卓APP的引导页下方,本应有三个小圆点,只展示一个
解决办法:代码中的变量全部写成了point1 , 复制代码后一定要检查呀(敲桌子~~) つ﹏⊂
封装的方法:private void setPointIma(boolean Ch1,boolean Ch2, boolean Ch3){
if (Ch1){
point1.setBackgroundResource(R.drawable.focused);
}else{
point1.setBackgroundResource(R.drawable.unfocused);
}
if (Ch2){
point2.setBackgroundResource(R.drawable.focused);
}else{
point2.setBackgroundResource(R.drawable.unfocused);
}
if (Ch3){
point3.setBackgroundResource(R.drawable.focused);
}else{
point3.setBackgroundResource(R.drawable.unfocused);
}
}
结果:已解决