Android Learning drawable Objects

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.