Let's discuss the text field element. a text field accepts a single line of user input, which is usually text. Guys, note that this element is one line only. It's used mostly for usernames, passwords and short text inputs. For multi line, or multi style text entry, use a text view instead. Anyway, use a text field though, to get a small amount of information from users.
It's a fixed height field with rounded corners. It's it automatically displays a keyboard when user taps within it. It can include system provided buttons, such as the bookmark button. Text field can display text that uses multiple styles. So you can specify the text color Formed alignment only for plaintext. Though, background image, border style rounded or not.
If it's rounded, you cannot have a special background image there. Also, you can design a disabled state by providing a special background image for that state. You can specify a minimum font size. If you have the adjusted feed option enabled. There just to feed option automatically resizes the font size to ensure the maximum legibility of the text. You can customize the text field if it helps users understand how they should use it.
For example, you can display custom images in the left or right sides of the text field. Or you can add a system provided button. In general, you should use the left and have a text field to indicate its purpose and the right end to indicate the prison have additional features displayed the clear button in the right end of a text field when appropriate. When this element is present, tapping it clears the contents of the text field, eliminating the need to keep tapping the delete key. display a hint in the text field to help users understand its purpose. The placeholder text disappears as soon as any text is entered.
Specify a keyboard type that's appropriate for the type of content you expect users to enter. For example, you might want to make it easy for users to enter a URL I've been or phone number is provide several different keyboard types, each designed to facilitate different type of input. We discussed the keyboard types in the TextView and keyboard lecture. The textfield input can also be masked to protect sensitive information like passwords and pin codes. This is called a secure text field. Again, note that multi line inputs and expandable inputs are technically not a text field.
It's an editable text view. It behaves and has similar features though. Like you can see in the example here, we have an additional button to insert Smiley's