Android Applet (i) Calculator

Source: Internet
Author: User

After about four nights of study, finally made a small thing, from the small white slowly learned something:

1. Nesting use of layouts

Use of 2.EditText, button, and other attributes

3. Need to declare before use, and then instantiate, the button needs to set the Click event

4. Use the OnClick function to set the function of the click button

5. Internationalization to put the kanji into the string.xml, from which to call

Layout Code main function

Set the background color add android:theme= "@android: Style/theme.black.notitlebar" in androidmanifest.xml activity

Set the color need to add color.xml to EditText under Res-values to set the white bottom need to create a new drawable under Res, new white_bg.xml to achieve

Interface:

Recently feel that learning to program and review the conflict is very big, both have to do a good job, their own strength and the height of their own to reach is far from enough, to intensify efforts to break their own.

Android Applet (i) Calculator

Related Article

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.