This is the 21st day of my participation in the August Text Challenge.More challenges in August
background
EditText is one of the most commonly used basic controls in Android. As an input box, EditText performs most of the information entry functions in a project and has a wide range of requirements. This article will briefly cover the basic properties of the EditText control
Commonly used attributes
Android :layout_width control width, which can be set to wrAP_content adaptive,match_parent fills parent form and custom width Android: Layout_height control height, can be set to wrap_content adaptive,match_parent fills the parent form and custom height Android: Visibility controls whether to display,visible default, invisible controls are not visible, Android :maxLength Sets the maximum length of text. Android :maxLines Sets the maximum number of lines. Android :maxEms Sets the maximum number of characters per line Android: Text Sets the text. Android :textColor Sets the text color. Android :textSize Sets the text size. Android :fontFamily Sets the font style Android :textColorHint color android:textStyle set textStyle. The options are normal, bold, italic, bold|italic Android: gravity text alignment, optional has a top, bottom, left, right, center_vertical, fill_vertical, center_horizontal, fill_horizontal, center, fi Ll,clip_vertical, CLIP_horizontal,start,end Android :layout_gravity Sets the position of the control relative to the parent container Android :digits Specifies that the input field accepts only the specified characters. Android :textScaleX Sets the word spacing. Android :editable sets whether the input field is editable Android: focusableInTouchMode control view in touch mode is available, the focus of the android: focusable setting controls whether can get focus android: selectAllOnFocus setting controls whether all the text after gains focus Android :imeOptions Sets the display style of the function key of the software disk. The common options are actionGo show Go,actionSearch search,actionSend Send,actionNext Next,actionDone done Android: Background Sets the background of the control, usually @null android:enabled Whether to enable the component android: Clickable sets whether the control can click \