Beginner Android Development

Source: Internet
Author: User

Because the company boss said he wanted to make a payment app on the POS, then the task was so enjoyable for me.

I started looking for Android development data learning, development tools just started to decide to use eclipse, a variety of configurations are blindfolded, Android SDK download, wow ...

Later decided to use Android Studio

After the installation is started, configure SDK,JDK or the new project opens, he will automatically download the SDK and download it directly to the system tray.

Android Virtual machine Notebook is not powerful to use the real machine test, the use of virtual machine too much space!

Create a new project change the name of the app

Then practice this control, it is recommended to write in text mode

Android:layout_width= "Match_parent"   represents the width of the control that fills the entire parent control (how wide the screen is and how wide it is, and the most visible control is displayed when there are multiple controls on the horizontal layout)
Android:layout_width= "Wrap_content"   represents the width of the control itself (the control has its own width, but you can also specify a width of **DP)
Android:layout_width= "0DP"  means that the control has no width, but you have a different control on the horizontal layout, his display takes up all the remaining width, and when you have a horizontal layout with two or three widths of 0DP controls, he will split the width of the entire parent control.
Android:id= "@+id/tab_bottom1"   this ID is the name of the control you want to manipulate (just like your id)
Android:background= "#aac6e3" the  background color of this control, you can use the picture when the background (android:background= "@mipmap/sk")
android:visibility= "visible"  this control is displayed on the parent control invisible The representative does not display but occupies a position gone the non-  occupied position is not displayed
android:gravity= "Center|left" means that the word in this control is centered left and right, either up or down.
android:text= "1" The  contents of this control
Android:textsize= the  size of the font inside the "20SP" control
Android:textstyle= the weight of the font inside the "bold" control
Android:clickable= "True" this control can be clicked false not clickable
app:layout_constrainttop_tobottomof= "@+id/tabe_button5"  at the top of this control at the bottom of the ID tabe_button5 control and so on top bottom bottom Right  Left
app:layout_constraintleft_toleftof= "Parent" the left part of  This control is in the left part of the parent control

Later slowly update the above has the understanding of the wrong welcome advice




Initial Android Development

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.