About 810,000 results
Open links in new tab
  1. java - String tab in textview programmatically - Stack Overflow

    Jan 22, 2019 · Another option is by using String.format(). For example: System.out.println(String.format("%-10s - %s", "ABC", "answer")); System.out.println(String.format("%-10s - %s", "ABCDE", "answer")); System.out.println(String.format("%-10s - %s", "SOMETEXT", "answer")); Produces: ABC - answer ABCDE - answer SOMETEXT - answer

  2. Using tabulator / tabspace in a TextView - Stack Overflow

    Oct 23, 2015 · The solution is add the character \u0009 that represents in unicode char the tabulator, in a string resource. just combine more tab to have more space. Why do you use a string resource? Simply putting "\u0009" works for me …

  3. How to use String.format() in Java to replicate tab "\\t"?

    String.format("%s, %-20s %s", firstName, lastName, phoneNumber) This will give the specified width to the second argument(last name) with right padding and phone number will start after the specified width string only.

  4. Best 2 Ways to Give Tab Space in Java - Codingface

    Oct 19, 2021 · How to give a tab space in Java? (Logic Behind Me) We can use a tab space in Java by using a simple “\t” symbol along with your code. We can place one “\t” in-between two strings to represent it with the tab space. We can use this tab space with both the numbers and as well as with the Stings also.

    Missing:

    • TextView

    Must include:

  5. TextView widget in Android with Examples - GeeksforGeeks

    Feb 6, 2025 · Step 4: In the Java file, we will try to change the Text displayed on the TextView upon touching along with a Toast message. Step 5: The complete code of the layout file and the Java file is given below. Below is the implementation of the above approach: activity_main.xml

    Missing:

    • String

    Must include:

  6. GitHub - metalurgus/LongTextView: A TextView, optimized to …

    longTextView. setText (getString (R. string. long_text)); A TextView, optimized to show very long text. Contribute to metalurgus/LongTextView development by creating an account on GitHub.

  7. Uses of Class javax.swing.text.View (Java Platform SE 8 ) - Oracle

    Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab.

  8. TextView in Android with Example - GeeksforGeeks

    Jul 17, 2022 · 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.

  9. java - Display string as a multiple tag in a single TextView

    Dec 14, 2016 · I have a string like this: "hello,nice,owesome" and I want to display it like this: This is how I separate my string: ArrayList<String> list = Arrays.asList(str.split(",")); now I have separated greeting list, but I don't know how to display this list as multiple tags in …

    Missing:

    • Tab

    Must include:

  10. How to show an HTML string in an Android TextView

    Mar 29, 2024 · Skipping past that issue for a few moments ... if you want to try to display an HTML string in a TextView, you need to use the Android Html.fromHtml() method, as shown in this code: In my example code I’ve defined a String in XML in my res/values/strings.xml file like this: <string name="app_name">TestProject2</string> <string name="html">

  11. Some results have been removed
Refresh