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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:11:24+00:00 2026-05-25T22:11:24+00:00

I used all possible ways to wrap text in textview but it’s not working.

  • 0

I used all possible ways to wrap text in textview but it’s not working. It’s only showing one line and the rest is gone. I’m fetching address from database and assigning it to textview. I tried textview‘s height and width parameters with all possible values but it’s still not working.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relativeLayout1" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="fill_horizontal">
<TextView android:layout_toRightOf="@+id/address" 
    android:layout_alignTop="@+id/address" android:layout_alignBottom="@+id/address" 
    android:layout_height="wrap_content"
    android:id="@+id/addressans" 
    android:layout_marginLeft="55dp"
    android:inputType="textMultiLine"
    android:layout_weight="1"
    android:ellipsize="none"
    android:singleLine = "false"
    android:layout_width="wrap_content">
</TextView>
</RelativeLayout>
  • 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-25T22:11:25+00:00Added an answer on May 25, 2026 at 10:11 pm

    That’s coz you specified both android:layout_alignTop="@+id/address" and android:layout_alignBottom="@+id/address". Your TextView has no space to stretch. You probably need to remove android:layout_alignBottom="@+id/address" attribute to let it stretch to the bottom.

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

Sidebar

Related Questions

Should it be used for all sizable forms, or only when it is not
I am trying to learn about all possible conditionals that can be used on
What are all the possible ways in which we can get memory leaks in
I've used all three of these when making local programmatic connections to databases. Is
The terms are used all over the place, and I don't know of crisp
I have used all the Standard Network related code for Getting Images of about
I use RenderAction to render a partial that is used all over my site.
My log file in SQL Server used up all the space on my disk.
which javascript framework can be used for all browsers
I'd like to show a list of all used assemblies on a dedicated web

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.