About 330,000 results
Open links in new tab
  1. Kotlin: How to get and set a text to TextView in Android using Kotlin

    May 21, 2017 · I want to change text of TextView While click on it. My code: val text: TextView = findViewById(R.id.android_text) as TextView text.setOnClickListener { …

  2. TextView in Kotlin - GeeksforGeeks

    Feb 24, 2025 · Android TextView is simply a view that are used to display the text to the user and optionally allow us to modify or edit it. First of all, open Kotlin project in Android Studio. …

  3. Android TextView and setText Dynamically example in Kotlin

    Jul 18, 2018 · Let’s Build a Complete Example of Android TextView: In this example will learn to change TextView dynamically, change color, setText, change Text Size, Change the style and …

  4. Android TextView in Kotlin with Example - notesjam.com

    Sep 22, 2024 · In this article you will learn how to create TextView using Kotlin with example. How to set text in TextView programmatically.

  5. Android - How to set TextView widget text - sebhastian

    May 27, 2022 · In Kotlin, you can set the text property of the TextView widget directly. You don’t need to call the setText() method as shown below: val myTextView = …

  6. Android TextView In Kotlin

    In your Android application, you can programmatically set the visibility of the Kotlin text view by specifying the Enum values, coming from “View”. val isVisible = findViewById (R.id.isVisible)

  7. Android - Set text to TextView - Stack Overflow

    Oct 18, 2013 · I'm currently learning some android for a school project and I can't figure out the way to set text dynamically to a TextView. Here is my code: protected void onCreate(Bundle …

  8. Dynamic TextView in Kotlin - GeeksforGeeks

    Feb 24, 2025 · Android TextView is an user interface that is used to display some text to the user. In this article we will be discussing how to programmatically create a TextView in Kotlin .

  9. Create An Android TextView Programmatically in Kotlin

    We will go through various steps that explains how to create Textview and add it in kotlin file, use different attributes to customise it etc. in any android application. For example, how to set text …

  10. TextView in Android using Kotlin - Owlbuddy

    Sep 14, 2023 · Steps to add TextView in Android activity. Add a TextView in the XML layout file of yours activity. Add required attributes such as text, textColor, textSize, textStyle to textView …

Refresh