Whie (!images[currentimage].endwith (". PNG ") &&!images[currentimage].endwith (". png "))//
What does that mean?
Want to test my discrete math?
Give it a try, no.
while (!images[currentimage].endswith (". png") &&!images[currentimage].endswith (". PNG ")) {
currentimage++;
if (currentimage>=images.length) {
currentimage=0;
}
}
Currentimage is already defined starting from 0, so it does not conform to the rules, so it can go in
Today, the touch of the original view in addition to the use of XML files, but also directly use the view, their own painting, cattle, but also thank Tung Teacher taught us the Windows programming, figured
MyView myview=new MyView (mainactivity.this);
Setcontentview (MyView);
Android's canvas can not only invoke methods to draw graphics, but also draw a bitmap directly onto the canvas. This provides the developer with great convenience .....
Olympic Five Rings
Fuwa
Android Learning drawable Objects