"?android:attr/textAppearanceLarge" (Figure 72) which is equal to 22sp. Similarly, there the two other being called "Medium Text" and TextViews "Small Text" by Android Studio. Their attributes android:textAppearance have been assigned the text sizes of "?android:attr/textAppearanceMedium" and "?android:attr/textAppearanceSmall" respectively. The text size for the former is 18sp whereas the later 14sp. Figure 72: TextView Add two to the as highlighted in Figure 72. TextView Figure 73: TextView In the highlighted line, you have made the selectable by TextView setting its attribute to "true", it allow users to make android:textIsSelectable selection gesture on its content which in turn triggers the copy and paste function of the Android system. In the second highlighted line, you have enabled the text to change color when it is touched by setting the to some color android:textColorHighlight value. When it is set to "true" Try it up on an AVD or a physical device! a glimpse of that running on my AVD (Figure 74). It works! Figure 74: Highlight, Copy, EditText The is an extension of that possesses rich editing capabilities. It EditText TextView provide a text field to allow the user to input text. It can be either a single line or multiple line. Touching an control places the cursor and automatically EditText displays the soft keyboard. In addition to typing, EditText comes equipped with a variety of productive features, such as allow users to select, cut, copy, and paste text, input auto-completion, and customize keyboard to suit input type.
"?android:attr/textAppearanceLarge" (Figure 72) which is equal to 22sp. Similarly, there the two other TextViews being called "Medium Text" and "Small Text" by Android Studio. Their android:textAppearance attributes have been assigned the text sizes of "?android:attr/textAppearanceMedium" and "?android:attr/textAppearanceSmall" respectively. The text size for the former is 18sp whereas the later 14sp. Figure 72: TextView Add two to the TextView as highlighted in Figure 72. Figure 73: TextView In the highlighted line, you have made the TextView selectable by setting its android:textIsSelectable attribute to "true", it allow users to make selection gesture on its content which in turn triggers the copy and paste function of the Android system. In the second highlighted line, you have enabled the text to change color when it is touched by setting the android:textColorHighlight to some color value. When it is set to "true" Try it up on an AVD or a physical device! a glimpse of that running on my AVD (Figure 74). It works! Figure 74: Highlight, Copy, EditText The EditText is an extension of TextView that possesses rich editing capabilities. It provide a text field to allow the user to input text. It can be either a single line or multiple line. Touching an EditText control places the cursor and automatically displays the soft keyboard. In addition to typing, EditText comes equipped with a variety of productive features, such as allow users to select, cut, copy, and paste text, input auto-completion, and customize keyboard to suit input type.
Android%20UI%20and%20Controls%20New.docx