About 301,000 results
Open links in new tab
  1. TextView | API reference | Android Developers

    Get the latest; Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback.

  2. TextView in Android with Example - GeeksforGeeks

    Jul 17, 2022 · TextView is a simple widget that is seen in every android application. This widget is used to display simple text within the android application. We can add custom styling to the text that we have to show. In this article, we will take a look at How to create a simple Text View in an android application.

  3. Layouts in views | Views | Android Developers

    Jun 27, 2024 · Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts. You can also use Android Studio's Layout Editor to build your XML layout using a drag-and-drop interface. Instantiate layout elements at runtime.

  4. Working With the TextView in Android - GeeksforGeeks

    Jun 21, 2024 · To implement the UI of the activity invoke the following code inside the activity_main.xml file. Output UI: 1. Formatting the TextView. The above four types of faces are to be invoked under the “typeFace” attribute of the TextView in XML. Invoke the following code and note the “typeFace” attribute of the TextView. Output: 2. Size of the TextView.

  5. TextView - Android SDK | Android Developers

    A TextView is a complete text editor, however the basic class is configured to not allow editing; see EditText for a subclass that configures the text view for editing. To allow users to copy some or all of the TextView's value and paste it somewhere else, set the XML attribute android:textIsSelectable to "true" or call setTextIsSelectable(true).

  6. Basics of XML Views: A Comprehensive Guide to Essential XML

    Apr 11, 2023 · TextView, EditText, RecyclerView, and ImageView are some of the most commonly used views in Android development. They are used for displaying text, user input, lists of data, and images,...

  7. android - Set TextView text from html-formatted string resource in XML

    Jul 13, 2010 · Just in case anybody finds this, there's a nicer alternative that's not documented (I tripped over it after searching for hours, and finally found it in the bug list for the Android SDK itself). You CAN include raw HTML in strings.xml, as long as you wrap it in.

  8. Using custom font in android TextView using xml - Stack Overflow

    Feb 17, 2012 · Short answer: No. Android doesn't have built-in support for applying custom fonts to text widgets through XML. However, there's a workaround that's not terribly difficult to implement. First. You'll need to define your own stylable. In your /res/values folder, open/create the attrs.xml file and add a declare-styleable object like so:

  9. TextView in Android with Java - C# Corner

    In this article, we will learn about TextView in Android with Java Programming Language with different types of TextViews with example programs. TextView is the user interface that displays the text message on the screen to the user.

  10. Working with the TextView · codepath/android_guides Wiki - GitHub

    Every Android device comes with a collection of standard fonts: Droid Sans, Droid Sans Mono and Droid Serif. They were designed to be optimal for mobile displays, so these are the three fonts you will be working with most of the time and they …

  11. Some results have been removed
Refresh