1. What should I do if setOnPageChangeListener is outdated?
Using ViewPager today, I found that the method of setOnPageChangeListener has expired, and the AS compilation failed.
Solution: have an addOnPageChangeListener instead
2. What should I do if getDrawable is out of date?
solution:
3. Simplified way of for loop in android
define an array int[] drawableIds = {R.drawable.a, R.drawable.b, R.drawable.c,.....}; for (int id : ids) { System.out.print(id+"\t"); }