Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3217170
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:22:48+00:00 2026-05-17T15:22:48+00:00

I have a TextView which I fill with text from a string resources in

  • 0

I have a TextView which I fill with text from a string resources in strings.xml. The string resource contains < li > elements to create a bullet list inside the TextView. My problem is that I want to control the indention of lines in the bullet list that span over more than one line. Default the text isn’t indented past the bullet so it looks kind of ugly. Is it possible to do this with style parameters or to create bullets in some other way?

Thanks in advance.

edit:
Is it really answered? I don’t have any problems producing the bullet list, as described in those links but I’m having problems getting the layout correct. The indentation is like this:

  • text that go beyond the width
    of the line.

And I want the “of the line” to at least start indented as far as the text after the bullet. That’s what I try to achieve.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:22:49+00:00Added an answer on May 17, 2026 at 3:22 pm

    I’m suprised that there seems to be noone with this problem. I mean, bullet list can’t be that uncommon in about-dialogs, FAQ etc and a bullet doesn’t have to contain too much text to span more than one row and run into this problem.

    Anyway, I got to solve it like this for now:

    <?xml version="1.0" encoding="utf-8"?>
    <ScrollView
        android:id="@+id/ScrollViewTipsLayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        xmlns:android="http://schemas.android.com/apk/res/android">
    
        <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
            android:id="@+id/TipsLayout"
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content">
    
            <TableLayout
            android:layout_height="wrap_content"
            android:id="@+id/TableLayout01"
            android:layout_width="wrap_content"
        >
            <TableRow>
                <TextView android:id="@+id/tvIngress"
                    android:layout_height="wrap_content" 
                    android:layout_width="wrap_content" 
                    android:text="@+string/tv_picking_content_ingress"
                    android:layout_span="2"
                    android:singleLine="false"
                    android:layout_weight="1"
                />
            </TableRow>
            <TableRow>
                <TextView android:id="@+id/tvCleaningDot1"
                    android:layout_height="wrap_content" 
                    android:text="•"
                    android:singleLine="false"
                />
                <TextView android:id="@+id/tvCleaningFirst"
                    android:layout_height="wrap_content" 
                    android:text="@+string/tv_picking_content_first" 
                    android:layout_width="0dp"
                    android:layout_weight="1"
                    android:gravity="left"
                    android:singleLine="false" 
                />
            </TableRow>
                <TextView android:id="@+id/tvCleaningDot2"
                    android:layout_height="wrap_content" 
                    android:text="•"
                    android:singleLine="false"
                />
                <TextView android:id="@+id/tvCleaningSecond"
                    android:layout_height="wrap_content" 
                    android:text="@+string/tv_picking_content_second" 
                    android:layout_width="0dp"
                    android:layout_weight="1"
                    android:gravity="left"
                    android:singleLine="false"
                />
            </TableRow>
        </TableLayout>
    </RelativeLayout>
    

    I use it to present static text in a bullet list so I don’t bother to create the bullet + text dynamically in code. If anyone have any suggestion how to accomplish the same thing in a better way, please enlight me.

    Btw, if going with the solution suggested in second link above:

    android:text="<ol><li>item 1\n</li><li>item 2\n</li></ol>
    

    The second, third etc. row in a bullet that span over more than one row won’t get same indention as first line, which is quite ugly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this XML code which generates a button, a textview and another button,
I have created a specific List which exists out of the following elements to
I have a list view which is populated via records from the database. Now
Hello I have a bunch of text on my file which i display. I
I have a few strings which I need to translate and display. Those strings
I have a login.jsp page which contains a login form. Once logged in the
I try to create a from application, in the app I have a lengthy
I have a Cocoa app I'm writing that has an ImageView with a TextView
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a layout which specifies sizes of widgets in relative dimension, for example:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.