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 5959671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:43:05+00:00 2026-05-22T18:43:05+00:00

Thanks in advance… i have a string array which i want to set in

  • 0

Thanks in advance…

i have a string array which i want to set in textview in proper alignment..
my textview is created dynamically..

my string is :

                  private String[] mDialogue = 
                  {
                            "Copa de Agua      8 Oz\n"+
            "Copa de Vino Tinto      6 Oz\n"+
            "Copa de Vino Blanco      5 Oz\n"+
            "Copa Flauta      5 Oz\n"+
            "Copa Tulipan      6 Oz\n"+
            "Copa Cocktail      5 Oz\n"+
            "Copa Sour      5 Oz\n"+
            "Copa Borgo–a      10 Oz\n"+
            "Copa Licor      2 Oz\n"+
            "Copa Sherry      3 Oz\n"+
            "Copa Balon/Cognac      9-25 Oz\n"+
            "Copa Champagne      5 Oz\n"+
            "Copa Catavinos      3 Oz\n"+
            "Vaso High Ball      8 Oz\n"+
            "Vaso On the Rocks      6 Oz\n"+
            "Vaso Collins/Tubo      10 Oz\n"+
            "Vaso Pilsen      10 Oz\n"+
            "Jarra de Cerveza      12 Oz",

            "1 Mililitro         0,001 L\n"+
            "1 Centilitro        0,01 L\n"+
            "1 Decilitro      0,1 L\n"+
            "2 Cucharadas      10 cc\n"+
            "20 Cucharadas      10 cl\n"+
            "1 Taza      236,5 cc\n"+
            "1 Taza      23,6 cl\n"+
            "1 Golpe      1 gota\n"+
            "1 Chorro      10 gotas",
                  }

i set this string statically but for different layouts it doesn`t work properly..
when i run in my emulator its look like :i added screen shot for this..
is there any html format which i set my text in proper alignment..??
or if u have any kind of solution then please help me..enter image description here

  • 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-22T18:43:06+00:00Added an answer on May 22, 2026 at 6:43 pm

    Your best bet is to use a layout with two textviews on each line. As far as I know there’s no good way to do what you want in a single textview.

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

Sidebar

Related Questions

Thanks in advance . I have an ipod 3.1.3. If i want to develope
Thanks in advance. I have a string: A = 'asdfghjklmn' How can I get
Thanks in advance! I have a Function in SQL server 2008 which splits a
Thanks in advance for your help experts. I want to be able to copy
First hi and thanks in advance in ASP.NET : assume that i have a
I am using c# .net. Thanks in advance for any help. I have searched
Thanks in advance for your time. I have a deeply nested XML whose XSLT
Thanks in Advance.... Can any one knows, I have a requirement to perfrom OnclickListener
Thanks in advance. I have Installed WAMP Server on System 4(192.168.1.104). I can Connect
Thanks in advance...see below the code.. i have 2 models, category and product my

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.