Attributes and Description
1- android:id
android:id="@+id/username"
This is the ID which uniquely identifies the control.
2-android:textSize
android:textSize="45sp"
Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
3-android:cursor Visible
android:cursorVisible="true"
Makes the cursor visible (the default) or invisible. Default is false.
4- android:editable
android:editable="true"
If set to true, specifies that this TextView has an input method.(use in backend)
5-android:fontFamily
android:fontFamily="cursive"
Font family (named by string) for the text.
6-android:gravity
android:gravity="center"
Specifies how to align the text by the view's X- and/or y-axis when the text is smaller than the view.
7-android:hint
android:hint="password"
Hint text to display when the text is empty.
8-android:input Type
android:inputType="textCapWords"
The type of data being placed in a text field. Phone, Date, Time, Number, Password etc.
9-android:maxHeight
android:maxHeight="56dp"
Makes the TextView be at most this many pixels tall.
10-android:maxWidth
android:maxWidth="90dp"
Makes the TextView be at most this many pixels wide.
11-android:minHeight
Makes the TextView be at least this many pixels tall.
12-android:minWidth
Makes the TextView be at least this many pixels wide.
13-android:password
android:password="true"
Whether the characters of the field are displayed as password dots instead of themselves. Possible value either "true" or "false".
14-android:phoneNumber
android:phoneNumber="true"
If set, specifies that this TextView has a phone number input method. Possible value either "true" or "false".
15-android:text
android:text="NovaXpert"
Text to display.
16-android:textAllCaps
android:textAllCaps="true"
Present the text in ALL CAPS. Possible value either "true" or "false".
17-android:textColor
android:textColor="@color/black"
Text color. May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
18-android:textColorHighlight
android:textColorHighlight="@color/teal_200"
Color of the text selection highlight.
19-android:textColorHint
android:textColorHint="@color/purple_700"
Color of the hint text. May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
20-android:textlsSelectable
android:textIsSelectable="true"
Indicates that the content of a non-editable text can be selected. Possible value either "true" or "false".
21-android:capitalize
android:capitalize="words"
If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types.
Don't automatically capitalize anything - 0
Capitalize the first word of each sentence - 1
Capitalize the first letter of every word - 2
Capitalize every character - 3
22-android:textStyle
android:textStyle="bold|italic"
Style (bold, italic, bolditalic) for the text. You can use or more of the following values separated by 'I'.
- normal - 0
bold - 1
italic - 2
23-android:typeface
android:typeface="serif"
Typeface (normal, sans, serif, monospace) for the text. You can use or more of the following values separated by 'l'.
☐ normal - 0
sans-1
serif - 2
monospace - 3
24-Visibility(use in backend)
android:visibility="gone"
A View's visibility status is of Integer type and can have one of three options: VISIBLE (0) - The View is visible to the user. INVISIBLE (4) - The View is invisible to the user, but still takes up space in the layout. GONE (8) - The View is invisible, and it does not take up space in the layout
25-ems
android:ems="10"
The ems is simply the font size. In an element with a 2in font, 1em thus means 2in. Expressing sizes, such as margins and paddings, in ems means they are related to the font size, and if the user has a big font (e.g., on a big screen) or a small font (e.g., on a handheld device), the sizes will be in proportion
Keep it up.....
ReplyDelete