Relativelayout
First Class: Property value is true to False
Android:layout_centerhrizontal Horizontal Center
Android:layout_centervertical Vertical Center
Android:layout_centerinparent is completely centered relative to the parent element
Android:layout_alignparentbottom snaps to the bottom edge of the parent element
Android:layout_alignparentleft snaps to the left edge of the parent element
Android:layout_alignparentright snaps to the right edge of the parent element
Android:layout_alignparenttop snaps to the top edge of the parent element
Android:layout_alignwithparentlfmissing
If the corresponding sibling element cannot be found, the parent element is the reference.
Second class: The attribute value must be the reference name of the ID
Android:layout_below at the bottom of an element
Android:layout_above on top of an element
Android:layout_toleftof on the left side of an element
Android:layout_torightof on the right side of an element
Android:layout_aligntop aligns the top edge of this element with the top edge of an element
Android:layout_alignleft aligns the left edge of this element with the left edge of an element
Android:layout_alignbottom the bottom edge of this element and the bottom edge of an element
Android:layout_alignright aligns the right edge of this element with the right edge of an element
Class III: Attribute values are specific pixels on duty, such as 30dip
Android:layout_marginbottom distance from the bottom edge of an element
Android:layout_marginleft the distance from the left edge of an element
Android:layout_marginright distance from the right edge of an element
Android:layout_margintop distance from the top edge of an element
Android:hint setting EditText to NULL when you enter the prompt information
Android:gravity Limit the view content: up and down
Android:layout_gravity= "Right" is used to set the container (component) left-leaning
Android:text the text displayed in the specified control to use the string in the String.xml file as much as possible
Android:textsize Text Size
Android:width Control width
Android:height Control Height
Android:layout_width specifying the width of the container component
Android:layout_height specifying the height of the container component
View proportionally Space
android:padding* Inner margin
When the Android:singleline is true, the content is displayed in the same row
Android:scaletype: Controls how the picture resized/moved to match the size of the ImageView
The meaning difference of Imageview.scaletype/android.scaletype value:
Center/center is centered on the original size of the image, and the center portion of the image is displayed when the picture is longer than the width of the view.
Center_crop/centercrop proportionally enlarges the size of the image so that the length of the image is equal to the width of the view
Center_inside/centerinside the contents of the picture to the full center, by shrinking the scale or the original size
Make the picture long and wide equal to or less than the width of the view
Fit_center/fitcenter enlarge/Shrink the picture to the width of the view, centered on the display
Fit_end/fitend the picture proportionally to the width of the view, centered in the lower part of the view
Fit_start/fitstart enlarge/Shrink the picture to the width of the view, centered in the upper position of the view
Fit_xy/fitxy The picture is not scaled up/down to the view size display
Matrix/matrix is displayed by using a matrix to draw and zoom in and out of the image dynamically.
Android:interpolator Control Animation Progress (Alpha scale translate rotate)
Android provides several interpolator subclasses that implement different speed curves, as follows
Acceleratedcelerateinterpolator is slower at the beginning of the animation and where it is introduced, and then starts to accelerate
Cycleinterpolator Animation loop to put a specific number of times, rate changes along the sine curve
Decelerateinterpolator at the beginning of the animation, the rate change is slow, and then start slowing down
Linearinterpolator changes at an even rate in the animation
android:screenorientation="Portrait" to specify screen as vertical screen
android:screenorientation="landscape" specifies that the screen is horizontal screen
android:capitalize set the English letter capitalization type
android:cursorvisible sets whether the cursor is displayed
android:digits sets which characters are allowed to be entered. such as "123456&*"
Android:drawablebottom: Output A drawable below the text. If the color is set to the background color
Android:drawableleft: Outputs a drawable to the left of text.
Android:drawableright: Outputs a drawable to the right of text.
Android:drawabletop: Outputs a drawable at the top of the text.
Android:editable whether the settings can be edited
Android:editorextras sets the additional input data for the text.
Android:ellipsize sets how the control is displayed when the text is too long, with the following properties
The start ellipsis is displayed at the beginning of the end ellipsis at the end
The middle ellipsis is displayed in the middle Marquee in the form of a marquee (animated lateral movement)
Android:ems sets the width of the textview width to n characters
Android:freezestext set the contents of the saved text and the cursor built-in
Android:includefontpadding sets whether text contains top and bottom extra white space, which is true by default
Android:inputmethod specifying Input method for text, requires fully qualified name (full package name)
Android:inputtype sets the type of Guangxi to help the input method display the appropriate keyboard type
Android:lines set the number of lines that text displays
Android:linespacingextra Setting Line Spacing
Android:linespacingmultiplier sets the multiple of line spacing. such as 1.3
Android:linksclickable set the link whether the connection is clicked, even if the Autolick is set
Android:marqueerepeatlimit sets the number of repeated scrolls in the case specified by Ellipsize.
When setting Marquee_forever last means infinite times
Android:maxems sets the width of the textview to a maximum of n characters. Overwrite EMS option when used in conjunction with EMS
Android:maxheight Setting the maximum height of the text area
Android:maxlength limits the length of text that is displayed, and the excess portion is not displayed.
Android:maxlines sets the maximum number of lines of text to display, in combination with width or layout_width, beyond the partial wrap, and the number of lines beyond will not be displayed.
Android:maxwidth Setting the maximum width of the text area
Android:minems sets the width of the textview to a minimum of n characters. Overwrite EMS option when used with EMS.
Android:minheight Setting the minimum height of the text area
Android:minlines sets the minimum number of lines of text, similar to lines.
Android:minwidth Setting the minimum width of the text area
Android:numeric if set, the TextView has a digital input method.
Android:password with a small dot "." Display text
Android:phonenumber is set to enter the phone number
Android:privateimeoptions Setting IME Options
android:scrollhorizontally if the text exceeds the width of the TextView, the horizontal pull bar appears
Android:selectallonfocus If the text is selectable, let him get the focus instead of moving the cursor to the beginning or end of the text. No effect after setting in TextView.
ANDROID:SHADOWCOLOR Specifies the color of the text shadow that needs to be used with Shadowradius
ANDROID:SHADOWDX sets the start position of the shadow horizontal coordinates.
Android:shadowdy sets the start position of the shadow vertical coordinates.
Android:shadowradius sets the radius of the shadow. Set to 0.1 to become the color of the font, generally set to 3.0 effect is better.
Android:singleline sets the single-line display. If used with Layout_width, when the text cannot be displayed in its entirety, it is followed by "...". such as android:text= "Test_singleline"
ADNROID:STRETCHCOLUMNS Specifies the number of columns in the Tablelayout as a stretch (when the screen is filled)
Android:text sets the display text.
Android:textsize set text size, recommended unit of measure "SP" or "PT"
Android:textstyle set glyph [Bold (bold) 0, Italic (italic) 1, bolditalic (coarse and oblique) 2] You can set one or more, with "|" Separated
Android:typeface Set the text font, must be one of the following constant values: normal 0, sans 1, serif 2, monospace (equal width font) 3
Android:width sets the width of the text area, supported by the measurement: px (pixels)/dp/sp/in/mm (mm), and the difference between layout_width look here.
Android_ Layout Properties Daquan