Android Studio Learning-the use of basic controls; Intent Beginner

Source: Internet
Author: User

Android Studio learns the third day.

Today mainly study

1. Use of base controls such as RadioButton, CheckBox, Ratingbar, Seekbar, etc.

In combination with similar controls in Delphi, there are not too many problems with the understanding and use of these basic controls. In contrast, various monitoring events are similar to Delphi.

2. Switch activity with intent

(1) to jump between different activity, first create a new activity.

(2) Create a new layout file, the name of the layout file in lowercase letters (Android Studio will be prompted).

(3) binding activity and layout layouts

  

(4) To register the newly created activity with the Androidmanifest.xml (shown in the red box)

  

In addition, the code in the blue box is the title bar in the upper part of the Mainactivity page (is it called the title bar?), yesterday did not understand the whole, the original here.

(5). mainactivity Button Setting Listener event

  

3. Wire Cheng Contact

From the method name on the thread class, run and Delphi execute, as if it were similar.

Android Studio Learning-the use of basic controls; Intent Beginner

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.