Android Basic

A, android XML layout

       A layout is a container for placing a lot of control that can adjust the position of the internal control according to certain rules, so as to prepare a fine screen. In addition to the internal layout of the controls placed outside, can also be placed layouts, nested multi-layer layout, we will be able to complete some of the more complex interface implementation.

       Android interface design is usually carried out by the View and ViewGroup with XML layout files.

       1)View

         View all objects must inherit android.view.View class. It is a screen and store specific data structure within a rectangular layout and content attributes. View a control (Widget) of the base class, usually to quickly create and map interface with controls. Commonly used Widget has TextView, EditText, Button.

      2)ViewGroup

      ViewGroup is the base class layout (layout) of.

 

Two, AndroidManifest.xml

        AndroidManifest.xml manifest file is the main configuration of the entire application, its internal content package name, version number, component, and other privileges. The manifest file is used to record the application of the relevant configuration information. In the root directory of each application must contain a, and the file name must be exactly the same. This file contains the configuration information of APP, the system needs to run in accordance with the contents inside the APP code display interface.

 

Published 64 original articles · won praise 19 · Views 100,000 +

Guess you like

Origin blog.csdn.net/wwwsssZheRen/article/details/100589632