1, Android string.xm L text in the middle add space
Android STRING.XM l plus space tips
<string name= "password" > Password </string>
This is a space.
2, Text line display
TextView, EditView single-line display and input in the Android layout layout file
<textview android:singleline= "true"/>: Text single-line display
<editview android:singleline= "True"/>: text input box single line input
Android:singleline= "true" single-line display
3, EditView input Box Properties
EditView password input and digital input control in Android layout layout file
<editview android:password= "true"/>: input data for text input box not shown directly
<editview android:numeric= "integer"/>: input data for a text input box can only be a number
android:numeric= "integer" Digital input control, android:password= "true": password content hiding
4, EditView input content Tips
Android Layout layout file EditView input content hint
<editview android:hint= "@string/in put_pwd"/>: Display a hint in a text entry box
Android:hint= "@string/in put_pwd" When the input box gets focus, the default display disappears
5, EditView input length control
EditView input Length control in Android layout layout file
<editview android:minlength= "5"/>: Set minimum input for text input box
<editview android:maxlength= "Ten"/>: Sets the maximum input for the text input box
MinLength, MaxLength: input Length control
6, Control Display control
Control display control in Android layout layout file
Android:visibility= "Gone": Control is gone
Android:visibility= "Invisible": control is not visible, but exists
android:visibility= "visible": control appears normally, system defaults
7. Typesetting control in Layout document
Relativelayout, LinearLayout, ListView internal control typesetting control in the Android layout layout file
android:orientation= "Vertical": Vertical layout
android:orientation= "Horizontal": Horizontal layout
8, the application of horizontal screen, vertical screen display
Android androidmanifest.xm l file settings apply display orientation
Android:screenorientation= "Portrait": Vertical screen Display
9, go to the title control
Android ANDROIDMANIFEST.XM L file setup activity untitled
Android:theme= "@android: Style/theme.notitlebar": Do not display titles
10. Android Layout Properties
Some of the important properties used by Relativelayout, the property value is True or 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_alignwithparentifmissing if the corresponding sibling element is not found, use the parent element as a reference